-
Notifications
You must be signed in to change notification settings - Fork 2
/
ScrollingNavigationViewController.h
41 lines (32 loc) · 1.22 KB
/
ScrollingNavigationViewController.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
36
37
38
39
40
41
//
// ScrollingNavigationViewController.h
// ScrollingNavigationDemo
//
// Created by Loganathan on 04/03/13.
// Copyright (c) 2013 Loganathan. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol ScrollingNavigationDelegate <NSObject>
-(void) labelSwitchedAtIndex:(NSUInteger)index;
@end
@interface ScrollingNavigationViewController : UIViewController<UIScrollViewDelegate>{
UIFont *labelFont;
UIImage *navigationImage;
UIColor *selectedLabelColor;
UIColor *unselectedLabelColor;
}
//---for swipeable navigation---
@property (nonatomic, retain) UIView *navigationBackView;
@property (nonatomic, retain) UIScrollView *navigationScrollView;
@property (nonatomic, retain) NSMutableArray *navigationTitles;
@property (nonatomic, retain) NSMutableArray *navigationLabels;
@property (nonatomic, retain) NSMutableArray *centerPoints;
@property (nonatomic) NSUInteger selectedLabelIndex;
@property (nonatomic, retain) id<ScrollingNavigationDelegate> delegate;
-(void)autoPositionAdjustingTo:(UIScrollView *)scrollView;
//---set customozing---
-(void)setLabelFont:(UIFont *)font;
-(void)setNavigationImage:(UIImage *)image;
-(void)setSelectedLabelColor:(UIColor *)color;
-(void)setUnselectedLabelColor:(UIColor *)color;
@end