【发布时间】:2010-08-18 16:05:53
【问题描述】:
在 xCode 中,编写一个 iPhone 应用程序,我应该不在翻转视图之后/同时放置代码吗?
我似乎遇到了随机崩溃......
{
FlipsideViewController *controller = [[FlipsideViewController alloc] initWithNibName:@"FlipsideView" bundle:nil];
controller.delegate = self;
controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:controller animated:YES];
[controller release];
////////////////// Should I not put any code here???
// Code that takes 0.0001 secs to run? Or 0.1 secs? Or 1-2 secs?
}
或者当翻转回来时:
{
[self.delegate flipsideViewControllerDidFinish:self];
////////////////// Should I not put any code here???
// Code that takes 0.0001 secs to run? Or 0.1 secs? Or 1-2 secs?
}
【问题讨论】:
标签: iphone xcode uiviewcontroller modal-dialog model-view-controller