-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRSPageViewControllerDataSource.h
More file actions
45 lines (33 loc) · 1.5 KB
/
RSPageViewControllerDataSource.h
File metadata and controls
45 lines (33 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// RSPageViewControllerDataSource.h
//
//
// Created by Radoslaw Szeja on 15.06.2014.
//
//
#import <Foundation/Foundation.h>
@class RSPageViewControllerDataSource;
@protocol RSPageViewControllerProtocol <NSObject>
- (void)pageViewController:(UIPageViewController *)pageViewController switchedToController:(UIViewController *)controller;
@end
@interface RSPageViewControllerDataSource : NSObject <UIPageViewControllerDataSource, UIPageViewControllerDelegate>
- (instancetype)initWithPageViewController:(UIPageViewController *)pageViewController
childControllers:(NSArray *)childControllers;
@property (nonatomic, weak) IBOutlet id<RSPageViewControllerProtocol> pvcDelegate;
@property (nonatomic, weak) IBOutlet UIPageControl *pageControl;
@property (nonatomic, weak) IBOutlet UIPageViewController *pageViewController;
@property (nonatomic, strong) NSArray *childControllers;
/**
* Pass the storyboard name, when using this object in storyboard,
* using runtime attributes in IB.
* RSPageViewControllerDataSource will use "Main.storyboard" as a default.
* @param name Storyboard name
*/
- (void)setStoryboardName:(NSString *)storyboardName;
/**
* This method allows to pass view controllers' storyboard id's by using
* runtime attributes in IB. This method need storyboard name to instantiate controllers
* @param controllers Expected to be a string with storyboard id's of controllers, seperated by coma
*/
- (void)setChildControllersFromString:(NSString *)controllers;
@end