我 go弃ModalViewController 召集人,在以下机构进行适当工作,但混淆不清为什么在自行(模式词典)上工作,而不是在括号上工作。
在座各位:
- I have a UITableViewController with a nav button that calls up a modal view:
- (void)viewDidLoad
{
[super viewDidLoad];
self.title = @"Root";
_data = [NSArray arrayWithObjects:@"One", @"Two", nil];
_detailController = [[DetailViewController alloc] init];
// Uncomment the following line to preserve selection between presentations.
// self.clearsSelectionOnViewWillAppear = NO;
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
// self.navigationItem.rightBarButtonItem = self.editButtonItem;
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(showAbout)];
}
- (void)showAbout
{
AboutViewController *abv = [[AboutViewController alloc] init];
abv.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:abv animated:YES];
}
此处用一个工具棒 but子对GonViewController 进行排外行动以关闭模式:
- (IBAction)dismissAction:(id)sender {
[self dismissModalViewControllerAnimated:YES];
}
我的问题是,为什么不[本人]放弃ModalViewController Animated]工作。 ? 这是在座吗? 我只想到父母的意见主计长能够放弃儿童模式观点?
感谢!