PushViewController 用于单击按钮
这是我的代码:
ViewController.h
import < UIKit/UIKit.h>
@interface StaffLoginViewController : UIViewController
@property (retain, nonatomic) IBOutlet UITextField *StaffUsername;
@property (retain, nonatomic) IBOutlet UITextField *StaffPassword;
- (IBAction)LoginClicked:(id)sender;
@property (nonatomic, retain) NSArray *arrayLogin;
- (IBAction)ResignKeyboardClicked:(id)sender;
@end
ViewController.m
- (IBAction)LoginClicked:(id)sender{
ViewController *view = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
[self presentModalViewController:view animated:YES];
}
我只有 modalViewController 的代码。请帮忙!谢谢:)