Latest 1.1.0
Homepage https://github.com/yury-dymov/InfPagedScrollView
License MIT
Platforms ios 6.0
Authors

Infinite scroll view with paging and dynamic reloadData capability.
Handy for galleries and quiz games, where scroll view elements can be added or removed during the runtime and infinite scroll is a nice thing to have.

Usage

You have to implement following dataSource methods in your ViewController:

1) -(NSUInteger)numberOfPagesInInfPagedScrollView:(InfPagedScrollView *)infPagedScrollView

to tell InfPagedScrollView, how many elements you have.

2) -(UIView*)infPagedScrollView:(InfPagedScrollView *)infPagedScrollView viewAtIndex:(NSUInteger)idx reusableView:(UIView *)view

to setup the view, which is or soon will be visisble on the screen.

To update the widget you may call -(void)reloadData method, which will try to persist position of the last visible element or move to the first element if this position is out of range.

Under the hood

Only three subviews are used for all your elements. This approach helps to achieve good performance and save a lot of memory as well.
If you have zero to two elements, widget will handle this situation gracefully.

Credits

Implementation is inspired by UITableView ideas.

Latest podspec

{
    "name": "InfPagedScrollView",
    "version": "1.1.0",
    "summary": "Infinite ScrollView With Paging and reloadData capability",
    "description": "    Infinite ScrollView With Paging and reloadData capability. Can be used for quizes, memory games and so on.n",
    "homepage": "https://github.com/yury-dymov/InfPagedScrollView",
    "license": "MIT",
    "authors": {
        "Yury Dymov": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/yury-dymov/InfPagedScrollView.git",
        "tag": "1.1.0"
    },
    "source_files": "*.{h,m}",
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This