Disable AutoLayout in code, not in nib

How can I make sure AutoLayout is not used for one of my UIViewControllers?
The view controller is completely created from code without a nib file.

I found a lot of messages about disabling automatic layout in a nib file, but not about disabling it from code

The problem is that in my MkMapView I have an annotation (arrow) that rotates incorrectly, as in ios5. In ios6, somehow the rotation is set to 0 degrees, immediately after the right rotation by a tenth of a second. Therefore, the direction of the arrow flickers in the simulator, but on the device it does not flicker, but the rotation is incorrect.

+4
source share

Source: https://habr.com/ru/post/1485123/


All Articles