An iOS (iphone operating system) interface simplified layout method based on UISCrolView
A layout method and interface technology, applied in the direction of user interface execution, program control devices, etc., can solve problems such as contentSize cannot be determined, cannot be slid, and views cannot be displayed as expected, and achieve the effect of avoiding page layout confusion or inability to slide
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0028] The present invention discloses a UIScrollView-based iOS interface simplified layout method, which comprises the following steps:
[0029] Step 1. Add constraints to UIScrollView. When using Autolayout, you don’t need to consider the frame layout, but directly create a UIScrollView view, and add the UIScrollView view to the parent view to add constraints: align the left and right sides of the UIScrollView view with the parent view, and display it in the center.
[0030] Step 2. Add constraints to the container (the container in the sliding scroll view, used to host subviews). The constraints on the container are very important here. First, let the container be added to the UIScrollView view to add constraints, and then set the constraints so that the distance between the top, bottom, left, right and contentSize of the container is 0, so as long as the size of the container is determined, the contentSize will also It can be determined, because at this time it is exactly...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

