mapView =[[MKMapView alloc]initWithFrame:self.view.bounds];
这使所有在屏幕上的MapView,所以它隐藏我的UINavigationBar
我怎样才能让我的地图,而隐藏它吗? THX提前:)初始化地图,不让它适合屏幕查看边界
mapView =[[MKMapView alloc]initWithFrame:self.view.bounds];
这使所有在屏幕上的MapView,所以它隐藏我的UINavigationBar
我怎样才能让我的地图,而隐藏它吗? THX提前:)初始化地图,不让它适合屏幕查看边界
尝试这一个 -
mapView =[[MKMapView alloc]initWithFrame:CGRectMake(0.0f,0.0f,self.view.frame.size.width,self.view.frame.size.height)];
你在哪里使用此代码?在视图控制器或其他地方? – saadnib 2011-05-03 16:10:40
是的,在一个UIViewController,特别是在viewDidLoad :) – Luca 2011-05-03 16:27:59