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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -