我有一个detailsView,其中包含我的mapView链接。我得到的问题是,当mapView显示时顶部导航栏和标签栏丢失。
如何切换到tabBarView? 我还在prepare segue方法中设置了一些变量。
////////////////////////////
#pragma mark - Segue
////////////////////////////
-(void)userTappedOnLink:(UIGestureRecognizer*)gestureRecognizer{
NSLog(@"The map link was pressed");
[self performSegueWithIdentifier:@"ShowMap" sender:self];
}
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
if ([[segue identifier] isEqualToString:@"ShowMap"]) {
MapViewController *mapViewController = [segue destinationViewController];
mapViewController.lat = self.poiDataObject.lat ;
mapViewController.lon = self.poiDataObject.lon ;
}
}