【发布时间】:2013-10-02 10:33:04
【问题描述】:
我有一个 TableViewCell,其中有一个按钮 Zoom Button。当我单击缩放按钮时,视图将导航到 PlayerViewController。
(https://www.dropbox.com/s/ikmj4vdfc407ldy/customcell.png)
这是我的播放按钮代码。
-(IBAction)downloadAction:(id)sender
{
BookPlayerViewController *bookPlayerViewController=[BookPlayerViewController alloc];
[self.navigationController pushViewController:bookPlayerViewController animated:YES];
}
我该如何解决这个问题?我正在使用 Nib 而不是情节提要来实施该项目。
【问题讨论】:
-
不应该是BookPlayerViewController *bookPlayerViewController=[BookPlayerViewController alloc]init];
-
我试过 BookPlayerViewController *bookPlayerViewController=[BookPlayerViewController alloc]init]; , 但它没有工作
-
你应该试试 BookPlayerViewController *vcBookPlayerViewController = [[BookPlayerViewController alloc] initWithNibName:@"BookPlayerViewController" bundle:nil]; [self.navigationController pushViewController:vcBookPlayerViewController 动画:YES];
标签: iphone uitableview ios7 uibutton