cocoa touch - change button type programatically -
is possible change programmatically type of button in xcode?
i trying change type "info light" "info dark".
no, can't. these button types subclasses of uibutton
, not settable properties. can specify type when creating button in interface builder or when creating button class method [uibutton buttonwithtype:(uibuttontype)buttontype]
.
if want change button type, suggest creating button of each type same frame, 1 hidden
property set true. toggle between them needed setting hidden
property. can share same target , action.
the question near-duplicate of one: change uibutton type programatically
Comments
Post a Comment