-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
38 lines (30 loc) · 1.14 KB
/
README
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
How to use it in your app
.h file
#import "MokriyaUILabelScrollingView.h"
@interface YourViewController : UIViewController <UILabelScrollView>
..
..
..
.m file
MokriyaUILabelScrollingView *scrollingView = [[MokriyaUILabelScrollingView alloc] initWithFrame:CGRectMake(0, 0, 320, 60)];
scrollingView.backgroundColor = [UIColor grayColor];
scrollingView.titleLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:15];
scrollingView.titlesArray = [[NSMutableArray alloc] initWithObjects:
@"Hipster iOS App",
@"HomeRun iOS & Android App.",
@"SimpleGeo",
@"Path",
@"ThinkAha",
@"HeyWire",
@"BottomLine",
@"MySizeFinder", nil];
[scrollingView prepareAndStart];
scrollingView.delegate = self;
[self.view addSubview:scrollingView];
[scrollingView release];
ÉÉ
#pragma Delegate Methods
- (void)didTappedAtIndex:(int)index
{
NSLog(@"Tapped at index %d",index);
}