Automatic generation method and device of attribute declaration code based on iOS

An automatic generation and attribute technology, applied in the field of program development, can solve problems such as error-prone, code error, and large code volume, and achieve the effect of improving correctness and reducing error rate

Pending Publication Date: 2022-06-28
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1) During the development process, the developer needs to write the Property declaration code against the background interface document. In the process of writing the code against it, it is easy to make mistakes such as naming or declaration type, which will lead to potential errors when the code is compiled and run.

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
  • Automatic generation method and device of attribute declaration code based on iOS
  • Automatic generation method and device of attribute declaration code based on iOS
  • Automatic generation method and device of attribute declaration code based on iOS

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0066] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0067] In order to improve the writing efficiency of attribute declaration code, in the first aspect, this application provides an iOS-based automatic generation method of attribute declaration code, which involves the field of program research and development and the field of finance, such as figure 1 As shown, the method for automatically generating property declaration code based on iOS includes the following steps:

[0068] Step S...

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 provides an automatic generation method and device of an attribute declaration code based on iOS, and relates to the field of program research and development, the technical field of mobile internet and the field of finance. The automatic generation method comprises the following steps: acquiring and analyzing to-be-converted data to obtain a corresponding data object file; and if the data object passes the legality verification, performing data translation according to variables in the data object file and a preset attribute declaration code grammar template to obtain an attribute declaration code corresponding to the data object file. According to the method and the device, the process of automatically generating the attribute declaration code file from the data objects in various formats is realized, repeated work of developers is not needed, and waste of human resources caused by extra workload is avoided; meanwhile, the application of the method is beneficial to reducing the error rate of the attribute declaration code.

Description

technical field [0001] The present application relates to the field of program research and development, the field of mobile Internet technology and the field of finance, and in particular to an iOS-based method and device for automatically generating attribute declaration codes. Background technique [0002] With the upgrade of the iOS R&D model, more and more projects use the MVC and MVVM architectures. The Model layer is responsible for serializing the data object, and the key value in the data object needs to be declared in the Model. Therefore, in the process of iOS engineering research and development, developers are faced with the need to write a lot of property declaration code in the Model layer according to the data interface document. Therefore, when developers develop Model layer code, they will face the following problems: [0003] 1) During the development process, the developer needs to write the property declaration code according to the background interfac...

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/41
CPCG06F8/427
Inventor 郭斌石忠德杨鑫李求知
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA
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