optimization - iphone landscape mode slow -


the iphone app developing in landscape mode chugging. put in portrait comparison , appears run smoother in orientation. not doing i'd think process intensive: map view, buttons, labels, , quartz drawing, yet basic quartz animation slows down badly.

does know if landscape mode terribly handicapped compared portrait, and/or if so, if there better ways create landscape app? use root rotated view transformed 90 degrees , attach sub views it.

thanks.

there should no real difference between landscape , portrait orientations when comes rendering performance. using transform rotate main view 90 degrees? of iphone os 2.1, believe, no longer need manually apply transform main view start in landscape. had force landscape orientation place delegate method within application delegate:

- (void)application:(uiapplication *)application willchangestatusbarorientation:(uiinterfaceorientation)newstatusbarorientation duration:(nstimeinterval)duration; {     // prevents view autorotating portrait in simulator     if ((newstatusbarorientation == uiinterfaceorientationportrait) || (newstatusbarorientation == uiinterfaceorientationportraitupsidedown))         [application setstatusbarorientation:uiinterfaceorientationlandscaperight animated:no]; } 

and following in root view controller:

- (bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation  {     return ( (interfaceorientation == uiinterfaceorientationlandscapeleft) || (interfaceorientation == uiinterfaceorientationlandscaperight)); } 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -