978654
978654 

所属分类:单片机开发
开发工具:Objective-C
文件大小:40KB
下载次数:4
上传日期:2013-12-05 09:30:46
上 传 者uihhhzzz
说明:  圆形时钟,IOS编程学习源码,很好的参考资料。
(Round the clock, IOS programming learning source, a good reference.)

文件列表:
AnalogClockWithImages (0, 2011-07-26)
AnalogClockWithImages.xcodeproj (0, 2011-07-26)
AnalogClockWithImages.xcodeproj\project.pbxproj (15620, 2011-07-26)
AnalogClockWithImages\AnalogClockWithImagesViewController.h (280, 2011-07-26)
AnalogClockWithImages\AnalogClockWithImagesViewController.m (4417, 2011-07-26)
AnalogClockWithImages\AppDelegate.h (464, 2011-07-26)
AnalogClockWithImages\AppDelegate.m (749, 2011-07-26)
AnalogClockWithImages\clock@2x.png (22009, 2011-07-26)
AnalogClockWithImages\clock_centre_point@2x.png (684, 2011-07-26)
AnalogClockWithImages\clock_hour_hand@2x.png (751, 2011-07-26)
AnalogClockWithImages\clock_minute_hand@2x.png (691, 2011-07-26)
AnalogClockWithImages\clock_second_hand@2x.png (514, 2011-07-26)
AnalogClockWithImages\en.lproj (0, 2011-07-26)
AnalogClockWithImages\en.lproj\AnalogClockWithImagesViewController.xib (12746, 2011-07-26)
AnalogClockWithImages\en.lproj\InfoPlist.strings (45, 2011-07-26)
AnalogClockWithImages\en.lproj\MainWindow.xib (19695, 2011-07-26)
AnalogClockWithImages\Info.plist (1187, 2011-07-26)
AnalogClockWithImages\main.m (364, 2011-07-26)
AnalogClockWithImages\Prefix.pch (344, 2011-07-26)
AnalogClockWithImages\PSAnalogClockView.h (1420, 2011-07-26)
AnalogClockWithImages\PSAnalogClockView.m (8050, 2011-07-26)

AnalogClockWithImages --------------------- This project is a quick example of how to use `PSAnalogClockView` which is a class that allows you to create an analog style clock by providing your own images. The class accepts images for: - The clock face - The hour hand - The minute hand - The second hand - A center cap piece that covers the point where all the hands intercept The class can be instantiated in two different ways: 1. By instantiating the class and then adding the images `PSAnalogClockView *analogClock = [[PSAnalogClockView alloc] initWithFrame:CGRectMake(0, 0, 80, 80)];` `analogClock.hourHandImage = [UIImage imageNamed:@"clock_hour_hand"];` `analogClock.minuteHandImage = [UIImage imageNamed:@"clock_minute_hand"];` `analogClock.secondHandImage = [UIImage imageNamed:@"clock_second_hand"];` `analogClock.centerCapImage = [UIImage imageNamed:@"clock_centre_point"];` `[self.view addSubview:analogClock];` `[analogClock start];` 2. By instantiating the class and passing in an `NSDictionary` of images `PSAnalogClockView *analogClock3 = [[PSAnalogClockView alloc] initWithFrame:CGRectMake(220, 246, 80, 80) ` ` andImages:[self images]];` `[self.view addSubview:analogClock3];` `[analogClock3 start];`

近期下载者

相关文件


收藏者