I've read (and viewed) the whole video and book of "Programming in Obj-c 2.0". Im trying to build a simple little program to increase the label +1 in a number when tapped increased and the opposite when you decrease. Everything is set up Im just trying to figure out what to put into the @implementation side. Heres what I have:
So what would I use?
Code:
@implementation AppDelegate_Phone
@synthesize window,view,increaseButton,decreaseButton,numberOfSidesChange;
-(IBAction)increase {
}
-(IBAction)decrease {
}
//More code.....
Code:
@interface AppDelegate_Phone : NSObject <UIApplicationDelegate> {
UIWindow *window;
UIView *view;
IBOutlet UIButton *decreaseButton;
IBOutlet UIButton *increaseButton;
IBOutlet UILabel *numberOfSidesChange;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UIView *view;
@property (nonatomic, retain) IBOutlet UIButton *increaseButton;
@property (nonatomic, retain) IBOutlet UIButton *decreaseButton;
@property (nonatomic, retain) IBOutlet UILabel *numberOfSidesChange;
-(IBAction)increase;
-(IBAction)decrease;
@end