Method, unit and processor for generating properties in ios (Internetworking Operating System-Cisco) programming
A technology of accessor and processor, which is applied in the field of computer programming, can solve problems such as time-consuming, and achieve the effects of saving time, simplifying the steps of generation, and being easy to use
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] see figure 1 As shown in the schematic workflow diagram, the method for generating accessors in ios programming disclosed in this application includes the following steps:
[0052] Step S1. Obtain relevant information of the data member to be declared, the relevant information includes: data type and data name.
[0053] Data members in the same class often have different data types, and there is a certain correspondence between different data types and the attributes of the keyword property. For example, the data type of NSMutableDictionary, the corresponding attribute of the keyword property is nonatomic, copy, and the data type of IBOutletUIView, the corresponding attribute of the keyword property is nonatomic, strong. Therefore, when obtaining the relevant information of the data member to be declared, the data type and data name need to be obtained.
[0054] Step S2: Generate and output the keyword property corresponding to the data member to be declared according...
Embodiment 2
[0059] In the second embodiment disclosed in the present application, a method of generating and outputting the keyword property corresponding to the data member to be declared in step S2 is disclosed. Among them, when obtaining the relevant information of the data members to be declared in step S1, the data type and the data name are obtained sequentially, see figure 2 As shown in the schematic diagram of the workflow, the generation and output of the keyword property corresponding to the data member to be declared includes:
[0060] Step S11, after acquiring the data type, generate a data type accessor containing the data type according to the data type and the corresponding relationship between the data type and the keyword property.
[0061] For example, when the data type of the data member to be declared is NSString type and the data name is str, when the data type is obtained, that is, the NSString type, a piece of code containing the data type "property(nonatomic, cop...
Embodiment 3
[0066] In the third embodiment disclosed in the present application, another method of generating and outputting the keyword property corresponding to the data member to be declared in step S2 is disclosed. Among them, when obtaining the relevant information of the data members to be declared in step S1, the data type and the data name are obtained sequentially, see image 3 As shown in the schematic diagram of the workflow, the generation and output of the keyword property corresponding to the data member to be declared includes:
[0067] Step S21, after acquiring the data name, generate a data name accessor containing the data name according to the data name.
[0068] After receiving the data name of the data member to be declared, a code containing the data name will be generated. For example, when the data type of the data member to be declared is NSString type and the data name is str, after receiving the data name str , generate a piece of code containing the data name,...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com