ボタンを作成しました
uploadBtn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
uploadBtn.frame = CGRectMake(35, 340, 250, 40);
[uploadBtn setTitle:@"Upload" forState:UIControlStateNormal];
[uploadBtn addTarget:self action:@selector(callUpload) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:uploadBtn];
アクション用
-(void)callUpload
{
UploadViewController *uploadObj = [[UploadViewController alloc]init];
[self.navigationController pushViewController:uploadObj animated:YES];
}
しかし、ボタンをタップしてもイベントは発生しません。助けてください