objective c - Using applicationDidBecomeActive makes app lag and slow after awakening it -


Note: This only occurs when I use cocos2d and spritebuilder. I only assign one exact code to a single view Attempted to do with the app that used to work fine.

When app to send ADLog, using the application DidIBit Active, the application is opened and slows down when opened again. This is a very simple app so it does not have to do with intensive graphics or processes.

MainScene.m

  #import "MainScene.h" @ @ implementation MainScene int score; - (zero) Digbutton {Score ++; ScoreLabel.string = [NSString stringWithFormat: @ "% i", score]; } @end   

Then this method is in appdelegate.

  - (zero) application idbackback (UIApplication *) application {NSLog (@ "hi"); }   

Does not this method work correctly with cocos2d or something else?

Be sure to call the super implementation CCAppDelegate methods:

  - (Zero) applicationDidbackActive: (UIApplication *) application {NSLog (@ "hi"); [Super ApplicationDebackActive: App]; }   

Without this, the default CCAppDelegate implementation will not run, which starts the director again:

  - (zero) applicationDebackActive: (UIApplication *) Application {[[CCCCetter shared director] setdextaldalta timer: yes]; If ([navigrantrolar_view viewer] == [CCCceterar shared director]] [[CCCCeter ShareShare] resume]; }    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -