我有splitview,它包含rootviewcontroller(uitableviewcontroller子類)和detailview(viewcontroller子類)。 現在我在rootview(tableviewcontroller子類)中擁有這樣的代碼。在splitview中導航到detailview中的另一個視圖,但該新視圖的SIZE需要整個屏幕
- (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (delegate != nil) {
[delegate viewchange];
}
}
和detailviewcontroller(在右側的ViewController子類)。
-(void)viewchange{
nextviewcontroller *新思維= [[nextviewcontroller的alloc] initWithNibName:@ 「nextviewcontroller」 束:無];
[nextView.view setFrame:self.view.bounds];
[nextView setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
[self presentModalViewController:nextView animated:YES];
[nextView release];
}
和導航通過選擇rootview行成功發生但新思維出現在整個屏幕,將隱藏rootview控制器的視圖(實現代碼如下)所以,我怎麼能顯示在左側和navigatation rootview只在detailview的大小右側?
thanx的任何幫助。
你是正確的,感謝名單抽空爲此,陸氏像我需要導航控制器和我試圖UIModalPresentationPageSheet,UIModalPresentationFormSheet,全屏幕的問題消除,但是那架新視圖是在中間,所以我會盡量多試一次。\ – Dhawal 2011-04-08 08:50:54
沒問題..如果你覺得答案是正確的,儘可能接受答案......你可以通過點擊答案附近的「勾號」來做到這一點...... – learner2010 2011-04-08 14:06:36
是的,導航控制器的工作到最後。 – Dhawal 2011-04-09 16:17:32