he i need help adding an NSUInteger number to my label by +1 everytime the view loads.. so the first time you see the view load the label says "1" the next time it loads the label says "2" then "3" and "4" and so on. thanks
Code:
h.file:
@implementation....... {
NSUInteger levelNumber;
NSString *string;
UILabel *label;
}
@property (nonatomic, retain) IBOutlet UILabel *label;
@property (nonatomic, retain) NSString *string;
@end
m. file:
-(void)viewDidLoad {
levelNumber = levelNumber +1;
string = [NSString stringWithFormat:@"%d", levelNumber];
label.text = string;
}