xcode - Fixed:Lanscape only not working in iOS5 -


i have updated ipod ios5 , xcode 4.2 none of application views running in landscape have done following:

- (bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation {     // return yes supported orientations     return (interfaceorientation == uiinterfaceorientationlandscapeleft); } 

although default line is:

- (bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation {     // return yes supported orientations     return (interfaceorientation != uiinterfaceorientationportraitupsidedown); } 

in view have set orientation landscape. in summary under 'supported device orientations' have landscape left selected. , lastly in info.plist have added initial interface orientation = landscape (left home button)

so when run on ipod & iphone simulator running ios5 device rotes left view not move much.

but if run on iphone simulator running 4.2 rotes , becomes landscape.

i don't know if doing wrong new ios/xcode or there problem.

thanks in advance. eli

update problem solved: caused by

initial interface orientation = landscape (left home button)

changed to

initial interface orientation = portrait (bottom home button)

update problem solved: caused by

initial interface orientation = landscape (left home button)

changed to

initial interface orientation = portrait (bottom home button)


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -