Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Inactive Publication Date: 2019-04-02
LINEWELL SOFTWARE
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In other words, the contentSize cannot be determined, causing the view to fail to display as expected, resulting in disordered page layout or inability to slide

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • An iOS (iphone operating system) interface simplified layout method based on UISCrolView
  • An iOS (iphone operating system) interface simplified layout method based on UISCrolView

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to an iOS interface simplified layout method based on UIStrolView. The method comprises the following steps of: adding constraint for container; and setting the distance betweenthe upper part, the lower part, the left part and the right part of container and the container size to be 0. In the layout making process, through determining the size and the position of the container size, the size of the contentSize can be determined, and finally, each sub-view is displayed according to the consentSize, so that the display effect of each sub-view can be ensured, and the phenomenon of page layout mess or slide failure is avoided.

Description

technical field [0001] The invention relates to the technical field of UI layout in iOS, in particular to a method for simplifying the layout of an iOS interface based on UIScrollView. Background technique [0002] Autolayout (automatic layout) has changed the traditional frame (the size of a view, including the starting position)-based layout idea. It is a relative layout, and the core idea is the positional relationship between views. For example, we can determine its position based on the four variables of the rectangle's starting abscissa, ordinate, length and width. Or, if the position of rectangle A has been determined, as long as the distance between each side of rectangle B and the corresponding side of A is known, the position of B can also be determined. The former is the idea of ​​frame, which is based on absolute values, while the latter is the idea of ​​Autolayout, which is based on the concept of offset. [0003] UIScrollView (the sliding scroll view of iOS s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/451
CPCG06F9/451
Inventor 许华堂沈翔宇
Owner LINEWELL SOFTWARE