#pragma mark 模态的呈现”
- (IBAction)addNote:(id)sender {
UIStoryboard *mainStoryBoard=[UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
ViewController *addPage=[mainStoryBoard instantiateViewControllerWithIdentifier:@"addNoteNavigation"];
addPage.modalTransitionStyle=UIModalTransitionStyleCrossDissolve;
addPage.modalPresentationStyle=UIModalPresentationFormSheet;
[self presentViewController:addPage animated:YES completion:nil];
}
#pragma mark 模态的关闭”
- (IBAction)doneAdd:(id)sender {
[self dismissViewControllerAnimated:YES completion:^{
}];
}