我有错误
其 View 不在窗口层次结构中!
当我是 NSnotification 时
- (void) receiveTestNotificationNSNotification *) notification
{
if ([[notification name] isEqualToString"TestNotification"])
NSLog (@"Successfully received the test notification!");
UIStoryboard *storyboard = [UIStoryboard storyboardWithName"Main" bundle:nil];
mainTabViewController *vc = [storyboard instantiateViewControllerWithIdentifier"passID"];
[vc setModalPresentationStyle:UIModalPresentationFullScreen];
[self presentViewController:vc animated:YES completion:nil];
}
Best Answer-推荐答案 strong>
如果您想在单元格内显示事件 View ,
也许在标题旁边,你可以使用类似的东西,
UIActivityIndicatorView *activityView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
[cell.imageView addSubview:activityView];
[activityView startAnimating];
关于ios - 其 View 不在 NSNotification 中的窗口层次结构中,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/21472493/
|