ios - Conditional cast from 'UIButton' to 'UIButton' always succeeds -


i'm newer on ios , when download other workspaces xcodes, give warnings on project,anyone helps ? thanks!!! don't decrease score, has been time newer? code

let button = uibutton(type: uibuttontype.system) as? uibutton

you don't need cast. swift can deduce type in case. enough:

let button = uibutton(type: .system) 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -