cocoa touch - Create custom buttons for Interface Builder -


hey guys, know how create custom buttons interface builder? instead of have regular round rect button, want have custom 3d button , random image background button, how can tell me how this, thanks

you either need find third-party class (ideally interface builder plug-in can see live in ib file) or subclass uibutton or nsbutton/nsbuttoncell mac , provide own 3d rainbow unicorn drawing behavior. :-)

interface builder can show classes knows - can't add behavior / modify existing drawing behavior there because that's wrong tool job. you'll need find else's or subclass own in code then let ib know it.

update based on op's comment

you can use -setimage:forstate: supply custom image given states.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -