I am trying to use setFrame
for my UIView, but I also But I use the automatic layout. Trouble I can set the frame for UIVUV for it, despite it being used for setFrame (x, y, w, h)
. I know that because of the adaptive layout it rejects, can I set the frame for it before runtime, before optimizing the layout? If you are trying to use adaptive layout with automatic layout then you should not think about it
frame.
However, for the case of the edge, the auto layout engine allows you to "fine-tuning" after calculating the status of all the elements, you can add something in your UIView
code Which you have to set your layout restrictions
- (zero) update adjustments {{Self-employed Counselors]; [Super Update Consultants]; }
After updating all the constraints in the system, it will call layoutSubviews
in your code. All the frames are set and final from related items at this level. You can overwrite auto layout frames.
- (zero) layouts subviews {[super layoutviewings]; Self.myView.frame = CGRectMake (0, 0, 10, 200); }
No comments:
Post a Comment