After iOS7.0,Uiviewcontroller added Automaticallyadjustsscrollviewinsets, describing the description of this attribute to the Official document interpretation
automaticallyadjustsscrollviewinsets
Property
A Boolean value that indicates whether the view controller should automatically adjust its scroll view insets.
Declaration
SWIFT
var automaticallyadjustsscrollviewinsets:bool
objective-c
@property (nonatomic, assign) BOOL automaticallyadjustsscrollviewinsets
Discussion
The default value of this property is YES, which allows the view controllers to adjust their scroll view insets in Respon Se to the screens areas consumed by the status bar, navigation bar, and toolbar or tab bar. Set to NO if you want to manage scroll view inset adjustments yourself, such as when there are more than one scroll view in The view hierarchy.
Availability
Available in IOS 7.0 and later.
When we add a uiscrollview in the VC view, set up frame as (0,0,320,568), add sub-view a on Uiscrollview, set the coordinates of a (0,0,100,17), but actually show the results, It looks like the coordinates of A are (0,64,100,17). At this point, you can get the correct coordinate effect as long as you set Automaticallyadjustsscrollviewinsets to No.
The Automaticallyadjustsscrollviewinsets property defaults to ScrollView automatically adapts to the screen
Automaticallyadjustsscrollviewinsets Properties for IOS Uiviewcontroller