Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add a custom Object in Interface Builder?

I'm using XCode4 and using the awesome TTTAttributedLabel class. I've created an NSObject and set its class to TTTAttributedLabel. I can't seem to add this to my View. How can I do so?

like image 758
Sheehan Alam Avatar asked Jun 28 '11 23:06

Sheehan Alam


1 Answers

If your class subclasses a standard control, then you can edit the class in the right panel. Here's how you'd change the class of a UILabel:

enter image description here

Other than that, Xcode 4 dropped support for IB plugins.

like image 175
Moshe Avatar answered Nov 06 '22 00:11

Moshe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!