6 UINavigationController - 斯坦福 i
作者:
以太死多 | 来源:发表于
2016-05-18 14:57 被阅读16次
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
if([segue.identifier isEqualToString:@"DoSomething"]){
if([segue.destinationViewController isKindOfClass:[DoSomethingVC class]]){
DoSomethingVC *doVC = (DoSomethingVC *)segue.destinationViewController;
doVC.neededInfo = ...;
}
}
}
[self.navigationController popViewControllerAnimated:YES];
- (BOOL)shouldPerformSegueWithIdentifier:(NSString *)identifier sender:(id)sender{
if([segue.identifier isEqualToString:@"DoAParticularThing"]){
return [self canDoAParticularThing] ? YES : NO;
}
}
本文标题:6 UINavigationController - 斯坦福 i
本文链接:https://www.haomeiwen.com/subject/bjjwrttx.html
网友评论