Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User Defined Runtime Attributes in IB for iPhone not working

I have a weird problem.

I am trying to setup User Defined Runtime Attribute in the IB. As shown below I setup a NSString statID attribute in my viewController and wanted to give it a test value 00000 in IB

User Defined Runtime Attributes

When I compile that I get this error when building: "User defined runtime attributes on Mac OS X versions prior to 10.6"

I know I can set up user defined attributes in iOS from the iOS docs found here go down to section: "Configuring Runtime Attributes for Custom Objects"

Any idea why it is giving me the error?

like image 453
Cyprian Avatar asked Oct 20 '10 16:10

Cyprian


1 Answers

User defined runtime attributes are available now in XCode 4.2. However it requires:

  • Compiling with iOS 5.0.
  • Setting the .xib version attribute to 4.2
  • Running in a simulator or device with iOS 5.0. Older version won't work.
like image 94
Jasper Blues Avatar answered Sep 20 '22 18:09

Jasper Blues