開啓新專案,在ViewController.h中輸入:
@interface ViewController : UIViewController {
UITextField *name;
UITextField *password;
}
@property (nonatomic, retain) IBOutlet UITextField *name;
@property (nonatomic, retain) IBOutlet UITextField *password;
@end
@interface ViewController : UIViewController {
UITextField *name;
UITextField *password;
}
@property (nonatomic, retain) IBOutlet UITextField *name;
@property (nonatomic, retain) IBOutlet UITextField *password;
@end
留言
張貼留言