iOS SDK (Window-based)

索引サイト





#import

@interface ios_win_1000AppDelegate : NSObject {
UIWindow *window;
UIButton *bt1;
UIButton *bt2;
UIButton *bt3;
UITextField *tx1;
UITextField *tx2;
UITextField *tx3;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;

@property (nonatomic, retain) IBOutlet UIButton *bt1;
@property (nonatomic, retain) IBOutlet UIButton *bt2;
@property (nonatomic, retain) IBOutlet UIButton *bt3;

@property (nonatomic, retain) IBOutlet UITextField *tx1;
@property (nonatomic, retain) IBOutlet UITextField *tx2;
@property (nonatomic, retain) IBOutlet UITextField *tx3;

- (IBAction)push1:(id)sender;
- (IBAction)push2:(id)sender;
- (IBAction)push3:(id)sender;

@end




#import "ios_win_1000AppDelegate.h"

@implementation ios_win_1000AppDelegate

@synthesize window;

@synthesize bt1;
@synthesize bt2;
@synthesize bt3;

@synthesize tx1;
@synthesize tx2;
@synthesize tx3;

- (IBAction)push1:(id) sender { tx1.text = @"bt1 push"; }
- (IBAction)push2:(id) sender { tx2.text = @"bt2 push"; }
- (IBAction)push3:(id) sender { tx3.text = @"bt3 push"; }



- (void)dealloc {
[window release];

[bt1 release];
[bt2 release];
[bt3 release];
[tx1 release];
[tx2 release];
[tx3 release];

[super dealloc];
}




AX