0

My application is in Landscape mode and in the application user has to register with photo whenever he clicks on browse button it directs to camera roll ,but when i am clicking on browse action an exception is occuring. Below is the Exception what i got

'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'
Jamal Zafar
  • 2,179
  • 2
  • 27
  • 32
username0013
  • 79
  • 1
  • 8

2 Answers2

1

Select your desired interface from the summary tab of the application -> supported Interface Orientation.

enter image description here

Jay Gajjar
  • 2,661
  • 2
  • 21
  • 35
  • what code you have in - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation method? – Jay Gajjar Aug 29 '13 at 07:22
  • I used these methods -(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscape; } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return UIInterfaceOrientationIsLandscape(interfaceOrientation); } and here it works fine,but without attaching image it moves to mainviewcontroller – username0013 Aug 29 '13 at 07:24
0

Look at this url for help regarding all the orientation related problems

'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'

Community
  • 1
  • 1
NHS
  • 409
  • 2
  • 7
  • here it will change to potrait know but it should not change to potrait – username0013 Aug 29 '13 at 07:06
  • are you setting orientation properties for the imagepickercontroller? in that case it will cause some problem related to orientaion – NHS Aug 29 '13 at 07:21
  • you can either use this for reference.. http://stackoverflow.com/questions/5737632/open-uiimagepickercontroller-in-landscape-mode – NHS Aug 29 '13 at 07:28