Skip to content

Because of this custom view , we can build app quickly.welcome to my friends , commit your tool or views.

License

Notifications You must be signed in to change notification settings

jianlong108/JLKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JLKit

image

JLBothSidesBtn

两面均可点击,都可以设置自己的UI,注册自己的点击方法.支持系统自带的多种动画.

- (void)viewDidLoad {
  [super viewDidLoad];
  _bothSidesView  =[[JLBothSidesBtn alloc]initWithFrame:CGRectMake(100, 100, 44, 44)];
  _bothSidesView.autoTransition = NO;
  [_bothSidesView.positiveBtn addTarget:self action:@selector(dbtn1) forControlEvents:UIControlEventTouchUpInside];
  [_bothSidesView.oppositeBtn addTarget:self action:@selector(dbtn2) forControlEvents:UIControlEventTouchUpInside];
  [self.view addSubview:_bothSidesView];
}
-(void)dbtn1{
  NSLog(@"positiveBtn");
}
-(void)dbtn2{
  NSLog(@"oppositeBtn");
}

About

Because of this custom view , we can build app quickly.welcome to my friends , commit your tool or views.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages