How it works

The first short video shows RMEIdeasPullToSort control as it is used in Back in Touch for performing different sort operations on the phone book. All the controls are initially hidden behind the scroll view but become visible once the user drags the scroll view enough to result in a negative content offset. One of the functions will be highlighted. As the user keeps dragging RMEIdeasPullToSort control decides when to highlight the next function. If the user drags in the opposite direction without lifting his/her finger the previous function will be highlighted. To select any function the user simply lifts his finger when the function is highlighted. At this point RMEIdeasPullToSort informs its delegate that a selection has been made by the user. It is then up to the client application to decide what to do.

RMEIdeasPullToSort control defines some data source methods which must be implemented by its client. This is how it knows what images to display, the messages to show and how many distinct functions its client requires. In theory there could be an infinite number of functions but that would result in an infinite number of frustrated end users. We recommend a maximum of eight functions for a vertical ScrollView that is 480 points high. This number will be smaller for shorter ScrollViews because the user will have less space to drag. The minimum number of functions is two.

The second video clip shows a table that uses RMEIdeasPullToSort control to perform various sort operations.