iphone4s经过地图页面直接跳转到其它页面导致页面不能正常加载

简介: iphone4s经过地图页面直接跳转到其它页面导致页面不能正常加载

(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)
{
    if(PROCESSING_ORDER_STATE_IMMEDIATELY_ARRIVE == [GlobalShare getGlobalShare].user.processingOrderStat)
    {
        _orderDict = [[Singleton sharedInstance] getOrderDetail];
        [[Singleton sharedInstance] setProcessingOrderId:-1];
        newDict = nil;

// _haveProcessingOrder = NO;

[[Singleton sharedInstance] setHaveProcessingOrder:YES];

        [self initWithServicingStatus];
        [servicingView SetValueWithDictionary:[[GlobalShare getGlobalShare]GetCurrentOrderDictionaryFromSandBox]];

    }
    else if(PROCESSING_ORDER_STATE_WAIT_START_CHARGING == [GlobalShare getGlobalShare].user.processingOrderStat)
    {
        _orderDict = [[Singleton sharedInstance] getOrderDetail];
        [[Singleton sharedInstance] setProcessingOrderId:-1];
        newDict = nil;
        [[Singleton sharedInstance] setHaveProcessingOrder:YES];


        [self notifinotionCostumerTheCarWillArrive];
        [servicingView SetValueWithDictionary:[[GlobalShare getGlobalShare]GetCurrentOrderDictionaryFromSandBox]];
        self.navigationItem.title = @"服务中";

        //        [self painAction:nil];
    }
    else if(PROCESSING_ORDER_STATE_WAIT_END_CHARGING == [GlobalShare getGlobalShare].user.processingOrderStat)
    {
        [self drawPolyline];
        _orderDict = [[Singleton sharedInstance] getOrderDetail];
        [[Singleton sharedInstance] setReLoadOrderId:[[_orderDict objectForKey:@"id"] intValue]];
        [[Singleton sharedInstance] setHaveProcessingOrder:YES];


        [self StartBilling];
        [servicingView SetValueWithDictionary:[[GlobalShare getGlobalShare]GetCurrentOrderDictionaryFromSandBox]];

        //        [self painAction:nil];
    }
    else if(PROCESSING_ORDER_STATE_WAIT_FEE_SETTLEMENT == [GlobalShare getGlobalShare].user.processingOrderStat)
    {
        MoneyAccountViewController *moneyVC = [[MoneyAccountViewController alloc] init];
        newDict = nil;
        moneyVC.priceDict = [[GlobalShare getGlobalShare] GetCurrentCheckDictionaryFromSandBox];
        [[Singleton sharedInstance] setHaveProcessingOrder:YES];

        [self.navigationController pushViewController:moneyVC animated:YES];

        FLDDLogDebug(@"下线");
    }

    else if(PROCESSING_ORDER_STATE_INIT == [GlobalShare getGlobalShare].user.processingOrderStat || PROCESSING_ORDER_STATE_WAIT_NEW_ORDER == [GlobalShare getGlobalShare].user.processingOrderStat)
    {
        FLDDLogDebug(@"[GlobalShare getGlobalShare].user.processingOrderStat:%d", [GlobalShare getGlobalShare].user.processingOrderStat);
        [GlobalShare getGlobalShare].user.processingOrderStat = PROCESSING_ORDER_STATE_WAIT_NEW_ORDER;
        [[GlobalShare getGlobalShare] saveinfo:[GlobalShare getGlobalShare].user];
        FLDDLogDebug(@"[GlobalShare getGlobalShare].user.processingOrderStat:%d", [GlobalShare getGlobalShare].user.processingOrderStat);
        [[Singleton sharedInstance] setProcessingOrderId:-1];
        newDict = nil;
        [[Singleton sharedInstance] setHaveProcessingOrder:NO];

    }

    _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;

}


由于iphone4s处理速度和渲染慢的问题,会出现进入地图页面,再显示前直接跳转到其它页面,但是加载出来的这个页面出现混乱的问题。iphone5及以上都正常。所以为了兼容iphone4还时别经过地图页面直接跳到其它页面吧。

MoneyAccountViewController *moneyVC = [[MoneyAccountViewController alloc] init];

newDict = nil;

moneyVC.priceDict = [[GlobalShare getGlobalShare] GetCurrentCheckDictionaryFromSandBox];

[[Singleton sharedInstance] setHaveProcessingOrder:YES];

        [self.navigationController pushViewController:moneyVC animated:YES];

        FLDDLogDebug(@"下线");
目录
相关文章
|
iOS开发
iPhone 手机中支付宝钱包页面电话带 +86问题解决方案
说明:   这个问题只会出现在iPhone手机系统大于11.2以上的版本,由于 UIWebview 的问题导致 电话号码(如下图) 解决方案:   一般我们写的代码如下:  拨打电话  修改成代码参考如下:  拨打电话 如果您对这个方案有任何疑问欢迎在帖子下方追问吐槽
631 12
|
21天前
|
编解码 测试技术 iOS开发
iPhone 屏幕尺寸和开发适配
【10月更文挑战第23天】iPhone 的屏幕尺寸变化给开发者带来了一定的挑战,但也为创新提供了机遇。通过深入了解不同屏幕尺寸的特点,遵循适配原则和策略,运用合适的技巧和方法,我们能够为用户提供在不同 iPhone 机型上都具有良好体验的应用。在未来,随着技术的不断进步,我们还需要持续学习和适应,以满足用户对优质应用体验的不断追求。
|
21天前
|
编解码 iOS开发 UED
响应式设计在 iPhone 开发适配中的具体应用
【10月更文挑战第23天】响应式设计在 iPhone 开发适配中扮演着至关重要的角色,它能够帮助我们打造出适应不同屏幕尺寸和用户需求的高质量应用。通过合理运用响应式设计的原则和方法,我们可以在提供良好用户体验的同时,提高开发效率和应用的可维护性。
|
3月前
|
数据采集 iOS开发 Python
Chatgpt教你开发iPhone风格计算器,Python代码实现
Chatgpt教你开发iPhone风格计算器,Python代码实现
|
Shell iOS开发
iOS逆向:tweak开发教程(iPhone/tool)
iOS逆向:tweak开发教程(iPhone/tool)
1170 0
iOS逆向:tweak开发教程(iPhone/tool)
|
编解码 iOS开发
iphone 开发的基本入门知识
iphone 开发的基本入门知识
232 0
「镁客早报」iPhone或将在今年采用三摄;传Facebook致力于开发语音助力服务与亚马逊、苹果竞争
亚马逊向美国Alexa设备推免费音乐服务;视频会议软件开发商Zoom纳斯达克上市。
267 0
|
Web App开发 缓存 开发工具