Segue 为空(黑色),无法查看数据 [英] Segue is blank (black) , can't view the data
本文介绍了Segue 为空(黑色),无法查看数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([segue.identifier isEqualToString:@"DetailPlacePage"]) {
NSIndexPath *indexPath = [self.Allplace indexPathForSelectedRow];
NomadPlaceDetailViewController *placedetailcontroller = segue.destinationViewController;
placedetailcontroller.myDictionary = [self.placeArray objectAtIndex:indexPath.row];
}
}
这是我用来为 UIviewcontroller 准备 segue 的代码.看不到下一个视图控制器,屏幕变黑,只显示导航栏.
This is the code I use to prepare segue for UIviewcontroller. Can't see the next view controller , screen gets blank and just navigation bar is shown .
推荐答案
尝试投射你的 NomadPlaceDetailViewController:
Try casting your NomadPlaceDetailViewController:
NomadPlaceDetailViewController *placedetailcontroller = (NomadPlaceDetailViewController *)segue.destinationViewController;
这篇关于Segue 为空(黑色),无法查看数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文