https://github.com/bigvaliant/vtpageview
Building a Custom UIPageViewController
https://github.com/bigvaliant/vtpageview
a-custom-uipagecontrol a-custom-uipageviewcontroller objective-c uipagecontrol
Last synced: about 2 months ago
JSON representation
Building a Custom UIPageViewController
- Host: GitHub
- URL: https://github.com/bigvaliant/vtpageview
- Owner: bigvaliant
- Created: 2018-03-05T11:06:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-12T07:44:44.000Z (about 7 years ago)
- Last Synced: 2025-01-17T20:43:22.842Z (4 months ago)
- Topics: a-custom-uipagecontrol, a-custom-uipageviewcontroller, objective-c, uipagecontrol
- Language: Objective-C
- Size: 106 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VTPageView
Building a Custom UIPageViewControllerCode Example:
ViewController *v1 = [ViewController new];
v1.view.backgroundColor = [UIColor redColor];
ViewController *v2 = [ViewController new];
v2.view.backgroundColor = [UIColor blueColor];
ViewController *v3 = [ViewController new];
v3.view.backgroundColor = [UIColor purpleColor];
ViewController *v4 = [ViewController new];
v4.view.backgroundColor = [UIColor yellowColor];NSArray *images = [NSArray arrayWithObjects:
[UIImage imageNamed:@"page_sj"],
[UIImage imageNamed:@"page_nz"],
[UIImage imageNamed:@"page_djr"],
[UIImage imageNamed:@"page_sm"],
nil];
NSArray *viewControllers = @[v1, v2, v3, v4];
VTPageViewController* mainVC = [[VTPageViewController alloc]
initWithCustom:viewControllers
pageDotImages:images
pageDotWidth:25.0f
pageDotMargin:15.0f
];Run Screenshots:

