I created a label using Interface Builder, and now I want to set the background color of the label using code instead of IB's color picker. (I want to do this so that I can define the color using RGB and eventually change the colorspace for the label.)
I'm in cocoa. How do I edit the attributes of an IB object using code?
My code looks like this:
//.h file
#import <UIKit/UIKit.h>
@interface IBAppDelegate : NSObject {
UILabel *label;
}
@property (nonatomic, retain) IBOutlet UILabel *label;
@end
//.m file
#import "IBAppDelegate.h"
@implementation IBAppDelegate
@synthesize label;
(memory stuff...)
@end