Note that there are some explanatory texts on larger screens.

plurals
  1. POFlickering UIImageView
    text
    copied!<p>I have created a kiosk application with a main view and a modal view with an image carousel as a screensaver. This modal view slides down whenever the screen is touched.</p> <p>If the devices are left alone for a very long time (overnight) with the app running, the screen gets redraw problems when the screensaver modal animates away. It looks like the os has nothing to draw where the background image of the main screen is. The controls and text on the main screen draw like they should, only the background image is replaced by artifacts of the hiding animation from the modal. This happens on two devices (iPad 2 3G 16GB). This only occurs if the app has been running for a very long time, and it does not matter whether the screen is on or not. The background UIImageView in question is a vanilla UIImageView with no properties other than the "Image" changed.</p> <p>It looks like this (client logo and some text blurred out): <a href="http://tinypic.com/view.php?pic=2qx47bt&amp;s=6" rel="nofollow">http://tinypic.com/view.php?pic=2qx47bt&amp;s=6</a></p> <p>Any ideas of what could be wrong and how to fix it?</p> <p>Edit: Here is the code hiding the screensaver. Very standard, no hocus pocus.</p> <pre><code>- (void)hideScreenSaver { dispatch_async(dispatch_get_main_queue(), ^{ if (![[[self mainViewController] presentedViewController] isKindOfClass:[UINavigationController class]]) { [[self mainViewController] dismissModalViewControllerAnimated:TRUE]; } }); } </code></pre> <p>The screensaverViewController is created in - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions (in the main thread)</p> <pre><code>[[GMAppManager sharedManager] setScreenSaverViewController:[[AAScreenSaverViewController alloc] initWithNibName:@"AAScreenSaverViewController" bundle:nil]]; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload