I have a UIView extended class which has an extra NSString property. For convenience I'd like to somehow set that property in the designer, if possible.
@property (nonatomic,retain) IBOutlet NSString* designerAccessibleString;
The property will show up as an Outlet as expected. I connect it to an NSString Object that was added from the Objects Library (added as Plain Object, class changed to NSString). But I'm unable to edit the string through the designer Attributes Inspector... is there a way?
I know it's possible to use a UILabel, but that's overkill and I don't need the convenience that badly.
Thanks.
You can do this using the User Defined Runtime Attributes section of the identity inspector:

In this example the initialRelativeUrl property is set when the view controller loads.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With