我有一个UIView->UICollectionView->UICollectionViewCell
。我试图以编程方式返回,但这些都不起作用。代码确实叫。 我正在使用StoryBoard。导航返回上一个视图控制器
- (void) goBack:(NSNotification *) notification {
// [self.navigationController popViewControllerAnimated:YES];
// [self dismissViewControllerAnimated:YES completion:nil];
[self.navigationController popToRootViewControllerAnimated:YES];
}
让我看看你的按钮动作代码或通知代码? – Balu 2013-04-18 06:02:21
你是否在你的类中获得self.navigationControlle而不是零?检查这个。 – 2013-04-18 06:06:40
[[NSNotificationCenter defaultCenter] postNotificationName:@“goBack”object:nil]; – user1688346 2013-04-18 06:08:28