ボタンクリック用の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のコードしかありません。助けてください!ありがとう:)