我是iPhone新手,請 建議糾正以下問題的正確方法。iPhone:頂級導航欄將Google標誌推下屏幕
我 顯示谷歌地圖如下:
現在的問題是在頂部導航 欄按下下面的屏幕地圖 谷歌標誌,因此它是不 可見,當我隱藏導航 吧,我可以看到谷歌標識爲 ,低於
代碼參考:
- (void)viewDidLoad
{
[super viewDidLoad];
[self.navigationController setNavigationBarHidden:YES animated:NO];
mapView.showsUserLocation=TRUE;
self.title [email protected]"Map View";
mapView = [[MKMapView alloc] initWithFrame:self.view.bounds];
mapView.showsUserLocation=TRUE;
mapView.mapType = MKMapTypeStandard;
mapView.delegate=self;
/*Region and Zoom*/
MKCoordinateRegion region;
MKCoordinateSpan span;
span.latitudeDelta = 0.2;
span.longitudeDelta = 0.2;
CLLocationCoordinate2D location=mapView.userLocation.coordinate;
AppDelegate *appdelegate=(AppDelegate *)[[UIApplication sharedApplication]delegate];
location.latitude = [appdelegate.RDLat doubleValue];
location.longitude = [appdelegate.RDLng doubleValue];
region.span=span;
region.center=location;
[mapView setRegion:region animated:TRUE];
[mapView regionThatFits:region];
ParkPlaceMark *placemark=[[ParkPlaceMark alloc] initWithCoordinate:location title:appdelegate.RestAddress];
[mapView addAnnotation:placemark];
[self.view insertSubview:mapView atIndex:0];
}
現在請建議我如何展示 導航欄不用按以下 谷歌地圖。
任何幫助高度appriciated
Whaha,我剛剛發佈這個問題! (相隔2分鐘) – LouwHopley
噢,你是否在Interface Builder中添加了一切? – LouwHopley