2012-11-13 40 views

回答

0

這意味着我無法使用[presentViewController:動畫:]

這是不正確。您可以執行以下操作:

NewTestViewController *newTestController = [[NewTestViewController alloc] initForPhone]; 

newTestController.view.frame = CGRectMake(0, self.view.frame.size.height, self.view.frame.size.width, self.view.frame.size.height); 
[self.view addSubview:newTestController.view]; 

[UIView animateWithDuration:0.3 animations:^(void){ 
    newTestController.view.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height); 
} completion:^(BOOL worked) { 
    [newTestController.view removeFromSuperview]; 
    [self presentViewController:newTestController animated:NO completion:nil]; 
}];