In my iphone app i am programmatically creating the labels ,,i am creating array of labels
like UILabel *lblVersionName[20]; i need to copy the contents of the label into some string so i need to define property like
@property(nonatomic,retain)UILabel *lblVersionName[20];
but its giving error that “property can not have array of function type lblVersionName[20]”
cant we have property for array of labels(lblVersionName[20])
please somebody do help me, thanx in advance
From the documentation:
So you’re trying to add a property for an unsupported type.
Like Terente wrote, you should use
NSArrayorNSMutableArray.You might have a reason for why you need a c array, but that is only going to cause you a lot of trouble down the road. Don’t fight the frameworks.