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? -

android - How to prevent keyboard from closing when bottom dialog is open? -