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

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -