Method for achieving infinite circulating rolling selection based on UITableView in iOS

An infinite loop, data source technology, applied in the direction of program control device, creating/generating source code, visual/graphic programming, etc., can solve the problem that the iOS system cannot provide

Active Publication Date: 2016-06-15
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF4 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem solved by the present invention is that the iOS system cannot provide a list view with a circular scrolling function, and when the user slides the list to the bottom, the user can only manually re-slide to the top, which greatly reduces the user experience

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 achieving infinite circulating rolling selection based on UITableView in iOS

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0045] Usually, for UITableView, the data source is fixed, and the data is displayed by scrolling up and down, and then it is found that if its data source changes in real time with scrolling, and its offset value is changed after sliding, then this UITableView can For infinite loop scrolling, first offset the initial position of the UITableView to the middle of the entire content, so that it can scroll up and down initially, and then update it immediately after scrolling through two proxy methods scrollViewDidEndDragging:willDecelerate: and scrollViewDidEndDecelerating: Data source, reset the offset value, refresh the UI interface, make the UITableView scroll to change to the interface that the current user sees, and these users are not aware of it, so that the user can feel that the UITableView can scroll infinitely.

[0046] The present invention realizes the operation steps of infinite loop scrolling of UITableView as follows: figure 1 As shown, it mainly includes the foll...

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 achieving infinite circulating rolling selection based on a UITableView in an iOS. The method includes the steps that the UITableView and a view controller are created and loaded, and two agencies are added; two NSMutableArraies are added and store original data required to be displayed and a data source of the UITableView respectively; integer variables are added to record changes of the number of data objects and changes of the positions of selected objects in the rolling process; the data source of the UITableView is set, and all the variables are initialized; the sliding deceleration rate is set, elastic effects at the two ends are stopped, and the dataSource is set; a corresponding method is rewritten in the view controller, the values of the variables for recording rolling position information are updated, the data source of the UITableView is updated, and a UI is refreshed. By means of the method, the function of circulating rolling of the UITableView is achieved.

Description

technical field [0001] The embodiments of the present invention relate to the fields of computer technology and software development, and more specifically, the embodiments of the present invention relate to a method for realizing infinite loop scroll selection based on UITableView in the iOS system. Background technique [0002] With the rapid development of the Internet and mobile application technology, smart phones and mobile applications have had a profound impact on people's lives, involving areas such as browsing the Internet, transportation, real estate information, shopping, smart homes, etc. It can be said that mobile Apps are taking over people's daily lives. Since Apple launched the iOS7 system in 2013, the system style has been flattened, which has caused a trend of changing the style of human-computer interaction. Smooth interactions are increasingly preferred. [0003] In the process of using UITableView for software development of iOS system, although it pr...

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/44
CPCG06F8/34
Inventor 王斌
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
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