AFScrollView 1.0

AFScrollView 1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total725
Week0
Month0

Installs

Apps26
Test Targets1
powered by Segment

GitHub

Stars11
Watchers3
Forks4
Issues0
Contributors1
Pull Requests1

Code

Files2
LOCLines of Code 32


  • By
  • Alvaro Franco

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

Preview

alt text

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]