ios - Map rotation horribly slow on ios8 -


i got following code in vc in old project (no storyboard, pure code) :

- (void)viewdidload {     [super viewdidload];     self.mapview = [[mkmapview alloc] initwithframe:cgrectinset(self.view.frame, 10, 10) ];     [self.view addsubview:self.mapview];     self.view.backgroundcolor = [uicolor redcolor];     self.mapview.autoresizingmask = uiviewautoresizingflexiblerightmargin | uiviewautoresizingflexiblebottommargin | uiviewautoresizingflexibleheight | uiviewautoresizingflexiblewidth;     self.view.translatesautoresizingmaskintoconstraints = no; // <--- line } 

if comment last line, rotation portrait landscape or other way 3 seconds under ios8 !! also, @ random times unable allocate render buffer storage! errors appear.

if don't comment it, it's instantaneous (0.7seconds). seems related mapviews, other views/vcs rotate fine.

under ios7 rotation fast in case line commented or not.

why ? , why mapview affected ?

edit: seems autoresizingmask wrong. if in viewdidload set value none , manually change frame in willrotate, works fast.

i had same problem when application came background. froze few seconds , worked again. used .xib file without autolayout. when updated .xib file , added autolayout option problem gone. came idea because wrote autoresizing problem in solution. maybe others too...

cheers paul


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -