我試圖將modalviewcontroller的動畫設置爲false,並且幀調整不起作用,但是當我嘗試打開它時,動畫將正常工作。有沒有解決這個問題? 下面是我的代碼的上下文:如何在動畫關閉時修復modalviewcontroller的框架?
MyModal *modal = [[MyModal alloc] initWithNibName:@"MyModal" bundle:nil];
modal.modalPresentationStyle = UIModalPresentationFormSheet;
modal.view.superview.frame = CGRectMake(0, 0, 458, 230);
modal.view.superview.center = self.view.center;
[self.navigationController presentModalViewController:modal animated:NO];
我一直把它放在viewWillAppear和viewDidload裏面,好像我忘記了viewDidAppear:D – Rye 2013-03-05 08:51:10