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
Post a Comment