IOS page layout method, terminal equipment and computer readable storage medium

A technology of terminal equipment and page layout, applied in computing, software engineering design, instruments, etc., can solve the problems of increasing code redundancy, inability to reuse, and inability to reuse, so as to reduce code redundancy and facilitate development and debugging , good readability

Active Publication Date: 2019-05-24
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, when using NSLayoutConstraint for layout, even a very simple layout requires writing a lot of code. If the view hierarchy is complex, the amount of code can be imagined, and these codes cannot be reused, resulting in a large workload. Layout efficiency is low
VFL is a markup language defined by Apple to describe the relationship between views. It can be used in combination with NSLayoutConstraint. However, the readability of VFL is too poor for development and debugging.
In other words, the current native layout of the iOS system cannot be reused in general, which increases code redundancy and poor readability, which is not conducive to development and debugging

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
  • IOS page layout method, terminal equipment and computer readable storage medium
  • IOS page layout method, terminal equipment and computer readable storage medium
  • IOS page layout method, terminal equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0040] The technical solution of the present application can be applied to a terminal device, and the terminal device can be, for example, a mobile phone, a computer, a tablet, a personal computer, a smart watch, etc., which is not limited in the present application.

[0041] Cascading Style Sheets (Cascading Style Sheets, abbreviation: CSS) is a computer language that describes the relationship between views, and can be used to express Hyper Text Markup Language (Hyper Text Ma...

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 discloses an iOS page layout method, terminal equipment and a computer readable storage medium, and is applied to the technical field of software development. The method comprises the steps of determining a target style needed by an iOS page to be arranged, and acquiring a target CSS source code corresponding to the target style; inputting the target CSS source code into a pre-configured CSS interpreter to obtain a target iOS layout code corresponding to the target CSS source code, the CSS interpreter being used for converting the input CSS source code into an iOS layout code according to a preset corresponding relationship between the CSS source code and the iOS layout code; and using the target iOS layout code to layout the iOS page to obtain a layout page comprising the target style. By the adoption of the method and device, code redundancy can be reduced while iOS page layout is achieved, and development and debugging are facilitated.

Description

technical field [0001] The present application relates to the technical field of software development, and in particular to an iOS page layout method, a terminal device, and a computer-readable storage medium. Background technique [0002] At present, the native layout of the iOS system uses system automatic layout such as NSLayoutConstraint and Visual Format Language (Visual Format Language, abbreviation: VFL) for layout. Among them, when using NSLayoutConstraint for layout, even a very simple layout requires writing a lot of code. If the view hierarchy is complex, the amount of code can be imagined, and these codes cannot be reused, resulting in a large workload. Layout efficiency is low. VFL is a markup language defined by Apple to describe the relationship between views, which can be used in combination with NSLayoutConstraint. However, the readability of VFL is too poor for development and debugging. In other words, the current native layout of the iOS system cannot b...

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
IPC IPC(8): G06F8/38
CPCG06F8/38
Inventor 陈乐辉
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products