-
Notifications
You must be signed in to change notification settings - Fork 8
/
YSLContainerViewController.h
executable file
·35 lines (25 loc) · 1.14 KB
/
YSLContainerViewController.h
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
//
// YSLContainerViewController.h
// YSLContainerViewController
//
// Created by yamaguchi on 2015/02/10.
// Copyright (c) 2015年 h.yamaguchi. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol YSLContainerViewControllerDelegate <NSObject>
- (void)containerViewItemIndex:(NSInteger)index currentController:(UIViewController *)controller;
@end
@interface YSLContainerViewController : UIViewController
@property (nonatomic, weak) id <YSLContainerViewControllerDelegate> delegate;
@property (nonatomic, strong) UIScrollView *contentScrollView;
@property (nonatomic, strong, readonly) NSMutableArray *titles;
@property (nonatomic, strong, readonly) NSMutableArray *childControllers;
@property (nonatomic, strong) UIFont *menuItemFont;
@property (nonatomic, strong) UIColor *menuItemTitleColor;
@property (nonatomic, strong) UIColor *menuItemSelectedTitleColor;
@property (nonatomic, strong) UIColor *menuBackGroudColor;
@property (nonatomic, strong) UIColor *menuIndicatorColor;
- (id)initWithControllers:(NSArray *)controllers
topBarHeight:(CGFloat)topBarHeight
parentViewController:(UIViewController *)parentViewController;
@end