iOS 视图控制器:ROSwipenger
                 jopen
                 10年前
            
                    ROSwipenger 是一个可以在多个视图控制器之间进行转换的自定义库。
Usage
To run the example project, clone the repo, and runpod installfrom the Example directory first.
ROSwipenger is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ROSwipenger"
-   Create theROSwipengerview controller: ImageViewController *dummy1 = [ImageViewController new]; dummy1.image = [UIImage imageNamed:@"Brian.jpg"]; ImageViewController *dummy2 = [ImageViewController new]; dummy2.image = [UIImage imageNamed:@"Rob.jpg"]; ImageViewController *dummy3 = [ImageViewController new]; dummy3.image = [UIImage imageNamed:@"Heather.jpg"]; ROSwipenger *controller = [[ROSwipenger alloc] initWithTitles:@[@"Brian", @"Rob", @"Heather"] andViewControllers:@[dummy1, dummy2, dummy3]]; 
 
-   Present the view controller: [self presentViewController:controller animated:YES completion:nil]; 
-   Customize the controller: // Colors @property (strong, nonatomic) UIColor *titleBarBackground; @property (strong, nonatomic) UIColor *titleTextColor; @property (strong, nonatomic) UIColor *scrollIndicatorColor; // Font @property (strong, nonatomic) UIFont *titleFont; // Dimensions @property (assign, nonatomic) CGFloat titleBackgroundHeight; @property (assign, nonatomic) NSInteger titlePadding; @property (assign, nonatomic) NSInteger scrollIndicatorHeight; @property (assign, nonatomic) NSInteger defaultScrollIndicatorWidth; @property (assign, nonatomic) BOOL scrollIndicatorAutoFitTitleWidth; 
 
