Strange crash when I try to access to uibutton's titleLabel property (xcode 4.5 and IOS sdk 6.0)
问题 I found another annoying bug with xcode 4.5 and sdk 6.0 : when I run the following code : UIColor *newcolor = [UIColor colorWithCIColor:[CIColor colorWithString:@"1 1 1 1"]]; [button setTitleColor:newcolor forState:UIControlStateNormal]; UILabel *lbl = selectedbutton.titleLabel; It always fail with the error : -[UICIColor colorSpaceName]: unrecognized selector sent to instance 0xa9864f0 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UICIColor