ios - SKScene did not draw Scene after presenting a Picker/Browser -


i have viewcontroller in present skscene. before present skscene use uiimagepickercontroller in viewcontroller take picture , in

-imagepickercontroller:didfinishpickingmediawithinfo: 

when uiimagepickercontroller dismiss start present scene , initialize :

[self dismissviewcontrolleranimated:no completion:nil];     skview * skview = (skview *)self.view;     skview.showsfps = no;     skview.showsnodecount = no;      // create , configure scene.     multiplayerscene * scene = [[multiplayerscene alloc]initwithsize:self.view.frame.size andpicture:self.imageview];     scene.scalemode = skscenescalemodeaspectfill;     // present scene.      // --this works on simulator , not on physical device     [scene setbackgroundcolor:[uicolor redcolor]];     // --     [skview presentscene:scene];  

so, happened in simulator seems work image showing on screen,, on physical device picker dismiss , see gray background.

i have tried 2 days fix think problem skscene isn't first responder or not initialize correct, when debug on physical device picture comes correct. same problem produce type of picker / browser. on graybackground (the default color skscene) touch-events working can here handle right?

best konstantin

solved today update xcode 5.1 , works fine (head meets table)...
mc.lover clear answer!!

do :

- (void)mymethod {      multiplayerscene * scene = [[multiplayerscene alloc]initwithsize:self.view.frame.size andpicture:self.imageview];     scene.scalemode = skscenescalemodeaspectfill;      [skview presentscene:scene];  }  [self dismissviewcontrolleranimated:no completion: ^ {[self mymethod]; }]; 

hope helps !


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -