mapView =[[MKMapView alloc]initWithFrame:self.view.bounds];
这会在所有屏幕上制作mapView,所以它隐藏了我的UINavigationBar
如何在不隐藏它的情况下显示我的地图呢?提前thx:)
答案 0 :(得分:1)
尝试这个 -
mapView =[[MKMapView alloc]initWithFrame:CGRectMake(0.0f,0.0f,self.view.frame.size.width,self.view.frame.size.height)];