简体   繁体   English

iOS 6.1中的闪烁屏幕问题

[英]Flickering Screen issue in iOS 6.1

I am working on iOS 5.0 targeted project. 我正在研究iOS 5.0目标项目。 Everything was working fine until I upgraded my 一切都很好,直到我升级我的

device version to iOS 6.1 .In this new version I am facing some flickering issue in one 设备版本到iOS 6.1。在这个新版本中,我面临着一个闪烁的问题

particular screen.What I am doing is as follows 特别的屏幕。我在做什么如下

dispatch_async(dispatch_get_main_queue(), ^{            

    [APPINSTANCE performSelector:@selector(loadFadingScreenFromController:)      
    withObject:self afterDelay:0.2];//Method in AppDelegate to for db sync
    [APPINSTANCE setSyncFrom: @"ORDERS"];
});

//pushing a view
OrderList *orderListObj = [[OrderList alloc] initWithNibName:@"OrderList" bundle:nil];
[self.navigationController pushViewController:orderListObj animated:YES];
self.navigationController.navigationBarHidden = NO;

After doing this I get a very weird flicker in my iPhone screen. 在这之后我在iPhone屏幕上得到一个非常奇怪的闪烁。 The flicker occurs only 闪烁只发生

with iOS 6.1 , versions less then that works perfect . 使用iOS 6.1,版本低于完美。 Any help is greatly appreciated. 任何帮助是极大的赞赏。

I faced the same problem in my application. 我在申请中遇到了同样的问题。

Reason is I was displaying an alert view by using thread and that was the problem of flickering screen. 原因是我使用线程显示警报视图,这是闪烁屏幕的问题。

I commented that thread to display alert view and after that my application is working well. 我评论该线程显示警报视图,之后我的应用程序运行良好。

I don't get very much your code. 我没有得到你的代码。 You are using GCD on the main thread to actually perform a selector on another thread after a delay. 您正在主线程上使用GCD在延迟后在另一个线程上实际执行选择器。 Why don't you use dispatch_after() function? 为什么不使用dispatch_after()函数?

Remember that your "pushing a view" code is NOT called right after the selector is called because of concurrency. 请记住,由于并发性,在调用选择器后不会立即调用“推送视图”代码。

You don't know at which time your OrderList view controller is going to be pushed with respect to the loadFadingScreenFromController: 您不知道您的OrderList视图控制器将在何时推送到loadFadingScreenFromController:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM