Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 599 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 599 Bytes

iOSPagingView

Utility view for combining UIScrollView and UIPageControl

This repo is designed to copy into your workspace and modified the existed code to build new feature ontop of it.

To use it:

PPPagingView *v = [[PPPagingView alloc] initWithFrame:self.view.bounds];

UIView *v1 = [UIView alloc] init]; v1.backgroundColor = [UIColor redColor];

UIView *v2 = [UIView alloc] init]; v2.backgroundColor = [UIColor blueColor];

UIView *v3 = [UIView alloc] init]; v3.backgroundColor = [UIColor yellowColor];

[v addView:v1]; [v addView:v2]; [v addView:v3];

[self.view addSubview:v];