How to disable rotation of specific view iOS 8? - objective-c

I would like to ask how to disable rotation of a specific view in iOS 8. Although there is an answer in: Disable Rotation of UIViewController in iOS 8
However my app still crashes with error:
*** Assertion failure in -[ARQuestionPageViewController willAnimateRotationToInterfaceOrientation:duration:], /SourceCache/UIKit_Sim/UIKit-3318.69/UIPageViewController.m:996
even when this function is deprecated in iOS 8.
Could anyone help me how to do that? Thank you!

Related

Xcode 9 sendSubviewToBack bug

The sendSubviewToBack method on a tableView doesn't seem to work in Xcode 9.
The concerned view which needs to be sent to back is still displayed at the top of the edge. That's kind of strange.
Is it a bug on the simulator ?
Does anyone have the same issue ?

Xcode 7 UITextView weird behavior failing view loading

According to my observation, in XCode 7, if you put a UITextView in storyboard, and if the default text is less than 10 characters, the view controller won't load, and XCode throws no exception either - the app just hangs there.
I found it while migrating one of my XCode 6 project to XCode 7, and spent a lot of time to get there. I also started a clean slate project to confirm this behavior, and hope to put here to see if anybody else can confirm this?
I have seen this same thing, and was going to submit a question before I found this but I do not have the required reputation points to comment on the above question. This most definitely worked on xcode 6.4 with iOS 8 and is a new bug with xcode 7 as well as 7.0.1. This is an issue with both the simulator as well as on device.
iOS bug 22983873 submitted.

UIMenuController tap and hold zoom bubble fails in landscape mode

Supporting iOS 7. (non-AutoLayout)
Running iPhone 6 (iOS 8.1)
The UIMenuController doesn't show in Landscape mode, in effect breaking the UI for my users.
What's causing this to break?
Maybe it's the same problem that I have:
iPhone6 (no display zoom mode) UIMenuController truncated
The solution for me is to compile against iOS SDK 7.1. All others tries didn't help.

ScrollView UI Issue in ios 7

I am new to ios 7. I have to create an iPhone App which supports ios version 6.0.I created an Empty Application and I am using StoryBoard for designing UI's.
This is the screen that is generated in ios 6.1.3. On landscape mode the design is :
I am unable to see the field Firstname and its textfield.I haven't used AutoLayout.Here is the design View in xib.
It should support both the landscape and portrait orientations.How Can I do that?
In ios 7, the same UI in simulator is :
Please help me to solve this UI Issue...
You have to uncheck the Adjust ScrollView Insets, like this to solve that issue of not showing firstname textfield.
and your other problem will be solved by using autolayout.
you need to set every view controller to edgesForExtendedLayout = UIRectEdgeNone for iOS7 version. If you set this the component alignment will be proper as per iOS6 version.
Hope this may be helpful

UIViewcontroller's view frame starting at unexpected location

We are started to convert our iOS 6 application into iOS 7. I tried to create one screen for my application. I used Xib file for design, I designed the screen from top to bottom with UILabel and UIButtons. When I tried to run the app in Simulator it showing differently from xib design. In simulator the designs are came down and bottom UILabel has hide.
I got the self.view.frame from viewDidLoad() was (0,64,32,504). But, it is showing correctly in viewDidAppear (0,0,320,568).
How can I resolve this issue in Xcode 5? Could you please help me to solve this.Looking forward your reply. Thanks.
You cannot depend on the frame in -viewDidLoad, because it hasn't been resized for the device at that point. You need to wait for -viewDidAppear.