- (void)viewDidLoad{
[super viewDidLoad];
self.view.backgroundColor = [UIColor blueColor];
LSRockingBarView *rockingBarView = [[LSRockingBarView alloc] initWithFrame:CGRectMake(00, 100, 300, 50) AndDirection:LSRockingBarMoveDirectionHorizontal];
[self.view addSubview:rockingBarView];
rockingBarView.delegate = self;
LSRockingBarView *rockingBarView2 = [[LSRockingBarView alloc] initWithFrame:CGRectMake(50, 200, 50, 300) AndDirection:LSRockingBarMoveDirectionVertical];
[self.view addSubview:rockingBarView2];
rockingBarView2.delegate = self;
LSRockingBarView *rockingBarView3 = [[LSRockingBarView alloc] initWithFrame:CGRectMake(100, 200, 250, 250) AndDirection:LSRockingBarMoveDirectionAll];
[self.view addSubview:rockingBarView3];
rockingBarView3.sliderbackgroundColor = [UIColor cyanColor];
rockingBarView3.delegate = self;
}
- (void)LSRockingBarViewOffsetX:(CGFloat)x offsetY:(CGFloat)y{
NSLog(@"%s",__func__);
NSLog(@"offsetX:%f,offsetY:%f",x,y);
}
-
Notifications
You must be signed in to change notification settings - Fork 3
Lenny9789/LSRockingBar
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
飞机操控摇杆模拟,带输出(0.0-1.0)可以设置三种滑动模式 (Horizontal/Vertical/Both).滑块支持自定义图片大小可控.(已新增swift版)
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published