【发布时间】:2014-04-09 11:36:22
【问题描述】:
我已经开始使用 segue 在视图控制器之间执行导航。这就是我执行从 EPSearchResultController 到目标视图控制器的推送 segue 的方式。
//.h file
@property (strong, nonatomic) EPSearchResultController *obj_EPFirstViewController;
//.m File
- (IBAction)submitEPSearchQuery:(id)sender {
[self performSegueWithIdentifier:@"searchResultSegue" sender:sender];
}
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([[segue identifier] isEqualToString:@"searchResultSegue"])
{
self.obj_EPFirstViewController = (EPSearchResultController*)[segue destinationViewController];
self.obj_EPFirstViewController.searchAgainDelegate = self;
NSDictionary* resultDict= [NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle]pathForResource:@"SearchResult" ofType:@"plist"]];
self.obj_EPFirstViewController.searchResultArray = [resultDict objectForKey:@"Result"];
}
}
问题:
当我从目的地移回 EPSearchResultController 时,它显示黑屏。我正在使用
#pragma mark - Search Again Delegate
-(void)moveBack{
[self.navigationController popViewControllerAnimated:YES];
}
任何人都知道为什么它显示黑屏。
【问题讨论】:
-
searchResultsSegue 是什么类型的segue?是推式转场还是模态?
-
正如我所提到的,它是一个 PUSH Segue。
-
发现问题看我的回答:-)
标签: ios objective-c ios7 segue