Supercharge Your Innovation With Domain-Expert AI Agents!

Method for loading dynamic content aliasing in iOS system

A technology of dynamic content and mixed layout, applied in the direction of program loading/starting, website content management, special data processing applications, etc., can solve the problem of not being able to design the corresponding UITableViewCell, etc., to save manpower and time costs, reduce consumption, and improve efficiency Effect

Inactive Publication Date: 2017-12-15
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Faced with the inability to determine the dynamic content to be displayed in the corresponding layout column, developers can no longer use Auto Layout to design a correspondingly determined UITableViewCell and load the customized UITableViewCell through the native UITableView.

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
  • Method for loading dynamic content aliasing in iOS system
  • Method for loading dynamic content aliasing in iOS system
  • Method for loading dynamic content aliasing in iOS system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] like figure 1 , figure 2 As shown, a method for loading dynamic content shuffling in an iOS system, the method steps include the following:

[0027] S01: The application obtains the corresponding dynamic data from the server, performs JSON analysis on the obtained data, and stores the JSON-analyzed content in an array according to the specified order;

[0028] S02: Perform corresponding logical processing in the view controller ViewController, initialize the height buffer and UITableView, introduce the corresponding proxy method, call the custom method of UITableViewCell, realize the transition of HTMLData from VC to View, and classify and process data;

[0029] S03: Integrate UIWebView in UITableViewCell, receive dynamic data and load corresponding HTML dynamic pages through UIWebView, cache the real-time updated UITableViewCell height in the form of Key-Value key-value pairs, and take the current height and the corresponding height in the cache Make a comparison, u...

Embodiment 2

[0038] like figure 1 , figure 2 As shown, a method for loading dynamic content shuffling in an iOS system, the method steps include the following:

[0039] Step S01: The application first obtains corresponding dynamic data from the server, performs JSON parsing on the obtained data, and stores the parsed content in an array according to the specified order.

[0040] Step S02: Perform corresponding logical processing in ViewController, such as initialization of UITableView, import of UITableViewDelegate and UITableViewDataSource and implementation of proxy methods, transfer of network data to UITableViewCell, initialization of real-time updated buffers, etc.

[0041] Step S03: Integrate UIWebView in UITableViewCell, receive dynamic data and load corresponding HTML dynamic pages through UIWebView, cache and compare the height of the loaded content at the same time, update the height of the cache to the latest height in real time, and refresh UITableView.

[0042] figure 2 I...

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 a method for loading dynamic content aliasing in an iOS system. The method comprises the following steps that S01, corresponding dynamic data is acquired from a server by an application program, JSON analysis is conducted on the acquired data, and the content obtained after JSON analysis is stored in an array in a specified sequence; S02, corresponding logic processing is conducted in a View Controller, a height buffer and UITableView are initialized, a self-defining method of a UITableViewCell is called, transition of HTMLData from VC to a View is achieved, and the data is processed in a classified mode; S03, UIWebView is integrated in the UITableViewCell, the dynamic data is received, a corresponding HTML dynamic page is loaded through the UIWebView, the height of the UITableViewCell is updated in real time, and caching is conducted in the form of a Key-Value pair. An Html page is loaded through UIWebView, a basic bridge is built for mixed development, the customized HTML page is designed, the method can be used in an Android system or the iOS system, secondary development is not needed, and a large amount of manpower and time cost are saved for project development.

Description

technical field [0001] The invention relates to the fields of computer technology and software development, in particular to a method for loading dynamic content in an iOS system. Background technique [0002] Currently, in the iOS APP development process, UITableView is the most common control we use to display content. Of course, what we call content here is mostly pictures in a unified format, plain text, or a mix of pictures and texts. For such static content, Using UITableView to load is a breeze. Developers only need to design and arrange corresponding UITableViewCell according to the content mode of different individual needs. The most common method is to use Auto Layout in UITableViewCell, combined with UITableViewCell reuse mechanism Display the appropriate content. However, with the growing demand for individualization of users, simple content display can no longer meet the needs of users, and the function of loading and displaying content only using UITableView h...

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): G06F9/445G06F17/30
CPCG06F9/44521G06F16/958
Inventor 张丽万蕾
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More