Tag: dsiable

  • How to only enable portrait orientation for iPhone App

    When developing an iPhone app in Xcode, if you have any requirement that only portrait orientation allowed then you can do the following. Step 1: Open the implementation file for editing. Step 2. Navigate to shouldAutorotateToInterfaceOrientation method. This methods is auto generated by Xcode while creating the project. Step 3: replace the return statement with return (interfaceOrientation == UIInterfaceOrientationPortrait);.…