亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

iOS啟動頁倒計時跳過按鈕功能

 更新時間:2017年07月04日 08:40:52   作者:-此夜微涼  
這篇文章主要介紹了iOS啟動頁倒計時跳過按鈕功能,需要的朋友可以參考下

WSDrawCircleProgress, 根據(jù)UIBezierPath和CAShapeLayer自定義倒計時進度條,適用于app啟動的時候設(shè)置一個倒計時關(guān)閉啟動頁面。可以設(shè)置進度條顏色,填充顏色,進度條寬度以及點擊事件等。

Mou icon

公共方法:

//set track color 
@property (nonatomic,strong)UIColor *trackColor; 
//set progress color 
@property (nonatomic,strong)UIColor *progressColor; 
//set track background color 
@property (nonatomic,strong)UIColor *fillColor; 
//set progress line width 
@property (nonatomic,assign)CGFloat lineWidth; 
//set progress duration 
@property (nonatomic,assign)CGFloat animationDuration; 
/** 
 * set complete callback 
 * 
 * @param lineWidth line width 
 * @param block  block 
 * @param duration time 
 */ 
- (void)startAnimationDuration:(CGFloat)duration withBlock:(DrawCircleProgressBlock )block; 

使用:

- (void)viewDidLoad { 
 [super viewDidLoad]; 
 [self.view addSubview:self.imageView]; 
 DrawCircleProgressButton *drawCircleView = [[DrawCircleProgressButton alloc]initWithFrame:CGRectMake(self.view.frame.size.width - 55, 30, 40, 40)]; 
 drawCircleView.lineWidth = 2; 
 [drawCircleView setTitle:@"跳過" forState:UIControlStateNormal]; 
 [drawCircleView setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; 
 drawCircleView.titleLabel.font = [UIFont systemFontOfSize:14]; 
 [drawCircleView addTarget:self action:@selector(removeProgress) forControlEvents:UIControlEventTouchUpInside]; 
 /** 
  * progress 完成時候的回調(diào) 
  */ 
 __weak ViewController *weakSelf = self; 
 [drawCircleView startAnimationDuration:5 withBlock:^{ 
  [weakSelf removeProgress]; 
 }]; 
 [self.view addSubview:drawCircleView]; 
} 

相關(guān)文章

  • iOS Swift開發(fā)之日歷插件開發(fā)示例

    iOS Swift開發(fā)之日歷插件開發(fā)示例

    本篇文章主要介紹了iOS Swift開發(fā)之日歷插件開發(fā)示例,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-08-08
  • IOS UI學(xué)習(xí)教程之使用UIImageView控件制作動畫

    IOS UI學(xué)習(xí)教程之使用UIImageView控件制作動畫

    這篇文章主要為大家詳細(xì)介紹了IOS UI學(xué)習(xí)教程之使用UIImageView控件制作動畫,感興趣的小伙伴們可以參考一下
    2016-03-03
  • iOS實現(xiàn)懸浮按鈕

    iOS實現(xiàn)懸浮按鈕

    這篇文章主要為大家詳細(xì)介紹了iOS實現(xiàn)懸浮按鈕,文中示例代碼介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2021-01-01
  • 最新評論