Skip to content
Snippets Groups Projects
Commit d596e620 authored by Maxime Graulich's avatar Maxime Graulich
Browse files

iOS: fix background issue

parent 8b6066f1
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
- (void)applicationDidBecomeActive:(UIApplication *)application - (void)applicationDidBecomeActive:(UIApplication *)application
{ {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
[[NSNotificationCenter defaultCenter] postNotificationName:@"requestRender" object:nil];
} }
- (void)applicationWillTerminate:(UIApplication *)application - (void)applicationWillTerminate:(UIApplication *)application
......
...@@ -304,7 +304,8 @@ ...@@ -304,7 +304,8 @@
- (void)requestRender - (void)requestRender
{ {
[glView drawView]; if([[UIApplication sharedApplication] applicationState] == UIApplicationStateActive)
[glView drawView];
} }
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
......
...@@ -11,9 +11,6 @@ ...@@ -11,9 +11,6 @@
<key>CFBundleIconFiles</key> <key>CFBundleIconFiles</key>
<array> <array>
<string>icon_app_iphone_retina</string> <string>icon_app_iphone_retina</string>
<string>icon_app_ipad_61</string>
<string>ic_launcher.png</string>
<string>ic_launcher_retina.png</string>
</array> </array>
</dict> </dict>
</dict> </dict>
...@@ -24,12 +21,8 @@ ...@@ -24,12 +21,8 @@
<key>CFBundleIconFiles</key> <key>CFBundleIconFiles</key>
<array> <array>
<string>icon_app_ipad</string> <string>icon_app_ipad</string>
<string>icon_app_iphone_61</string>
<string>icon_app_ipad_retina</string> <string>icon_app_ipad_retina</string>
<string>icon_app_iphone_retina</string> <string>icon_app_iphone_retina</string>
<string>icon_app_ipad_61</string>
<string>ic_launcher.png</string>
<string>ic_launcher_retina.png</string>
</array> </array>
</dict> </dict>
</dict> </dict>
...@@ -42,17 +35,13 @@ ...@@ -42,17 +35,13 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0</string> <string>1.0.0</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.0</string> <string>1.0.0</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>UIBackgroundModes</key>
<array>
<string></string>
</array>
<key>UIFileSharingEnabled</key> <key>UIFileSharingEnabled</key>
<true/> <true/>
<key>UIMainStoryboardFile</key> <key>UIMainStoryboardFile</key>
...@@ -61,7 +50,7 @@ ...@@ -61,7 +50,7 @@
<string>iPadStoryboard</string> <string>iPadStoryboard</string>
<key>UIRequiredDeviceCapabilities</key> <key>UIRequiredDeviceCapabilities</key>
<array> <array>
<string>armv7</string> <string>opengles-1</string>
</array> </array>
<key>UISupportedInterfaceOrientations</key> <key>UISupportedInterfaceOrientations</key>
<array> <array>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment