ClockView 时钟
来源:互联网 发布:手机删除数据恢复 编辑:程序博客网 时间:2024/05/23 18:08
https://github.com/nacho4d/ClockView
Overview
ClockView is s simple class that will simulate an analog (or wall like) clock. ClockView makes use of various CALayers so it needs CoreAnimation (add QuartzCore.framework)
ClockView是一个简单的类用来模拟模拟时钟的。ClockVIew使用了不同的CALayer,所以需要引用CoreAnimation框架。
How to use
It can be initialized with the default style:
他可以使用默认的方式来初始化:
ClockView *clockView = [[ClockView alloc] initWithFrame:CGRectMake(0, 320, 100, 100)];[aView addSubview:clockView];[clockView start];... do your thing here :)[clockView stop];[clockView release];
Or it can be customized:
或者可以被定制:
ClockView *clockView = [[ClockView alloc] initWithFrame:CGRectMake(-15, 0, 350, 350)];[clockView setClockBackgroundImage:[UIImage imageNamed:@"clock-background.png"].CGImage];[clockView setHourHandImage:[UIImage imageNamed:@"clock-hour-background.png"].CGImage];[clockView setMinHandImage:[UIImage imageNamed:@"clock-min-background.png"].CGImage];[clockView setSecHandImage:[UIImage imageNamed:@"clock-sec-background.png"].CGImage];[self.view addSubview:clockView];[clockView start];... do your thing here :)[clockView stop];[clockView release];
Example of ClockView. Big: Customized style, Small: Default style"
0 0
- ClockView 时钟
- ClockView时钟类
- SurfaceView打造自定义时钟ClockView
- Android 自定义View(四) 时钟clockView
- Android自定义View实现时钟效果ClockView
- Android自定义ClockView实现时钟效果
- Android自定义控件之ClockView时钟效果
- ClockView——简单的Android时钟控件
- Android-ClockView
- android自定义ClockView
- android自定义ClockView
- Android自定义View—ClockView
- 时钟
- 时钟
- 时钟
- 时钟
- 时钟
- 时钟
- View背景颜色设置&Fragment&FragmentDialog
- MZTimerLabel 用作秒表或者倒计时
- win7、win8 无法修改host文件解决方法
- More is better
- 基于SSL验证的Apache CXF客户端设计总结
- ClockView 时钟
- Apache服务器开启Gzip压缩
- mutex 例子
- ColourClock 将时间值转换成背景色
- C++封装epoll
- Android root 详解
- 利用友元函数实现对运算符的重载
- SFRoundProgressCounterView 带有进度显示的倒计时视图
- UNIX I/O摘要