0
嘿所有我試圖添加其他視圖它正常工作,但它看起來像一個tableview我想它就像第一個我怎麼能改變視圖像我想要的不是tableview 順便說一句,這是我的翻頁按鈕代碼:在Iphone應用程序中添加視圖
- (IBAction)flip:sender{
// create a new SecondViewController
SecondViewController *playback =
[[SecondViewController alloc] init];
// set the transition style to fade
playback.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
playback.delegate = self; // set playback's delegate to self
// show the PlaybackViewController
[self presentModalViewController:playback animated:YES];
[playback release]; // release the playback PlaybackViewController
} // end method flip:
嘿,首先感謝你回答我的問題。 真的我不知道它是否是UITableViewController的子類,在閱讀了很多書籍並最終做出了一些Google搜索之後,我得到了這段代碼。 – 2010-08-16 17:53:20
@ bobj-c 好吧,我假設SecondViewController是一個由你製作的類。 那麼在這種情況下,你可以看看.h文件 是不是像 @implementation SecondViewController:UITableViewController ? – 2010-08-19 23:15:10