在地图页面,自动布局控件开始是隐藏或在屏幕外需要正常显示时再为正常的显示状态的,需要在显示之前加入。不然可能需要显示时,显示不出来,特别是iphone4s必然现。所以要在显示函数中加入这个大爷:_bookingButtonView.frame = CGRectMake(0, -40, kControlWidth, 40);
(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:YES];
[[Singleton sharedInstance] setMapViewPage:MAP_VIEW_MAIN];
//预约订单视图初始化,解决iphone 4s显示不全预约订单图层控件问题
// servicingView.delegte=self;
//由于接单按钮图层出来时,会调用viewWillDisappear
// if(![[Singleton sharedInstance] getShowNoticecarview])
// {
[[Singleton sharedInstance] setShowNoticecarview : NO];
_mapView.delegate = self;
//
//
//
//
// }
if (_isBookingServicing)
{
[self ReceiveBookingServiceStart];
_isBookingServicing = NO;
}
_mapView.customizeUserLocationAccuracyCircleRepresentation = YES; if(!_bShowed) { _bookingButtonView.frame = CGRectMake(0, -40, kControlWidth, 40); FLDDLogDebug(@"_bookingButtonView.getBookShowFlag:%d", _bookingButtonView.getBookShowFlag); } else { [self initMap]; if((PROCESSING_ORDER_STATE_WAIT_NEW_ORDER == [GlobalShare getGlobalShare].user.processingOrderStat) || (PROCESSING_ORDER_STATE_INIT == [GlobalShare getGlobalShare].user.processingOrderStat)) { [GlobalShare getGlobalShare].user.processingOrderStat = PROCESSING_ORDER_STATE_WAIT_NEW_ORDER; [[GlobalShare getGlobalShare] saveinfo:[GlobalShare getGlobalShare].user]; [[Singleton sharedInstance] clearOrderCountData]; [[Singleton sharedInstance] setProcessingOrderId:-1]; newDict = nil; [[Singleton sharedInstance] setHaveProcessingOrder:NO]; //清除之前的画线 if (commonPolyline!=nil) { [_mapView removeOverlay:commonPolyline]; } } else { [self drawPolyline]; } } _bShowed = YES;