Latest 1.0
Homepage https://github.com/AlvaroFranco/AFScrollView
License MIT
Platforms ios , requires ARC
Frameworks CoreText
Authors

A lightweight UIScrollView block-driven subclass for easily create multiple pages with embedded UIViews in Objective-C.

Preview

alt text

Cocoapods

AFScrollView is on CocoaPods, so you can get the pod by adding this line to your Podfile

pod 'AFScrollView', '~> 1.0'

If not, just import these files to your project:

AFScrollView.h
AFScrollView.m

Usage

Import AFScrollView to your class

#import "AFScrollView.h"

Init the class with -initWithFrame:andNumberOfPages.

AFScrollView *scrollView = [[AFScrollView alloc]initWithFrame:self.view.bounds andNumberOfPages:5];

In order to configure each page, which will be an UIView, call the block -configureViewAtIndexWithCompletion:

[scrollView configureViewAtIndexWithCompletion:^(UIView *view, NSInteger index, BOOL success) {

  //Configure here each page
  //Every page have a UIView embedded
  //So, in order to add objects, call [view addSubview:element];
  //The index var will retreive the current index
}];

Author

Made by Alvaro Franco. If you have any question, feel free to drop me a line at [email protected]

Latest podspec

{
    "name": "AFScrollView",
    "version": "1.0",
    "summary": "A lightweight UIScrollView block-driven subclass for easily create multiple pages with embedded UIViews",
    "description": "A lightweight UIScrollView block-driven subclass for easily create multiple pages with embedded UIViews in Objective-C",
    "homepage": "https://github.com/AlvaroFranco/AFScrollView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Alvaro Franco": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/AlvaroFranco/AFScrollView.git",
        "tag": "v1.0"
    },
    "source_files": [
        "AFScrollView.h",
        "AFScrollView.m"
    ],
    "frameworks": "CoreText",
    "requires_arc": true
}

Pin It on Pinterest

Share This