Latest 1.3.0
Homepage https://github.com/MQL9011/MqlClock
License MIT
Platforms ios 8.0
Authors


Description

Line of code shows the current time
Countdown based on runTime interface
support UITableViewCell their respective countdown, support sliding
Supports background countdown


一行代码显示当前时间
基于runTime接口的倒计时
支持UITableViewCell各自倒计时,支持滑动
支持后台倒计时
支持暂停重置

DJS.png

Install

The podfile

pod 'MqlClock'
pod install

How to Use

import

#import "MqlClock.h"

Init The clock

 self.mc = [MqlClock sharedMqlClock];
 self.mc.delegate = self;
 self.mc.dateFormat = @"yyyy-MM-dd HH:mm:ss";

delegate

@interface ViewController ()<MqlClockDelegate>

2017-04-25 10:45:57 星期二

- (void)showTheTimeNow:(NSString *)nowTime{
    self.timeLable.text = nowTime;

}

UIButton countdown 10.9.8.7…

- (void)countDown:(NSString *)cdTimer{
    [self.countDownBtn setTitle:[NSString stringWithFormat:@"倒计时%@",cdTimer] forState:UIControlStateNormal];
}

Change the display format 2017/05/11 18:09:12

self.mc.dateFormat = @"yyyy/MM/dd HH:mm:ss";

UITableViewCell CountDown

#import "UITableViewCell+MqlClock.h"

- (void)runCountDown{
    [self runCADisplayLinkTimer];
}

- (void)showTheCountDownTime:(NSString *)time{
    self.timeLable.text = time;
}

Set tableViewCell start CountDown second

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    //here is your cell
    cell.mcStartSecond = [NSString stringWithFormat:@"%ld",(indexPath.row * 10 + 10)];
    return cell;
}

License

MIT

Latest podspec

{
    "name": "MqlClock",
    "version": "1.3.0",
    "summary": "u4e00u884cu4ee3u7801u663eu793au5b9eu65f6u65f6u95f4.",
    "description": "u4e00u884cu4ee3u7801u663eu793au5f53u524du65f6u95f4 u57fau4e8erunTimeu63a5u53e3u7684u5012u8ba1u65f6 u652fu6301UITableViewCellu5404u81eau5012u8ba1u65f6uff0cu652fu6301u6ed1u52a8 u652fu6301u540eu53f0u5012u8ba1u65f6",
    "homepage": "https://github.com/MQL9011/MqlClock",
    "screenshots": "https://upload-images.jianshu.io/upload_images/1755091-c3c362a3d04678d1.gif?imageMogr2/auto-orient/strip%7CimageView2/2/w/228/format/webp",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/MQL9011/MqlClock.git",
        "tag": "1.3.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MqlClock/*.*"
}

Pin It on Pinterest

Share This