Variable IBOutlet name for a UILabel?
问题 Ugh, having some trouble here... I have 4 display labels in Interface Builder set up as IBOutlets in the view controller. I've set them up with these names label1, label2, label3, label4 I'm want to change the label text for a randomly selected label I'm trying this... In the header file I declare as a property: @property (nonatomic retain) UILabel *myLabel; And then in my implementation file I synthesize and I'm trying myLabel = [UILabel valueForKey: [NSString stringWithFormat:@"label%d",