@@ -4,7 +4,7 @@ A super simple and beautiful and high-efficiency clock widget. Drawing views usi
4
4
5
5
Demo Snapshot
6
6
-----------------------------------
7
- ![ github] ( https://github.com/daiweilai/DDClock/blob/master/DDClock .gif " github ")
7
+ ![ github] ( https://github.com/daiweilai/DDClock/blob/master/DDClock2 .gif " github ")
8
8
9
9
Setup
10
10
-----------------------------------
@@ -15,13 +15,15 @@ Setup
15
15
Using
16
16
-----------------------------------
17
17
it's quite simple
18
- * You can use the themes to create DDClock
18
+ * You can use the themes to create DDClock
19
+
19
20
DDClock *clock = [[DDClock alloc] initWithTheme:DDClockThemeDefault frame:CGRectMake(30, 60, 250, 250)];
20
21
[self.view addSubview:clock];
21
22
22
- * Or you can create DDClock via custom made
23
+ * Or you can create DDClock via custom made
24
+
25
+ //let your controller implement DDClockDelegate
23
26
DDClock *clock = [[DDClock alloc] initWithDelegate:self frame:CGRectMake(100, 860, 120, 150)];
24
- clock1.delegate = self;
25
27
[self.view addSubview:clock];
26
28
27
29
//Then implement the delegate methods!!
@@ -35,10 +37,10 @@ it's quite simple
35
37
36
38
Note
37
39
-----------------------------------
38
- The size of DDClick can be modified in Construction method
39
- DDClick can only be created into a square ,
40
- So DDClock will force your size if you put the paras width which not equal the height
41
- There is unwise way to update hourAndMinuteHand you shuld modify it
40
+ * The size of DDClick can be modified in Construction method
41
+ * DDClick can only be created into a square ,
42
+ * So DDClock will force your size if you put the paras width which not equal the height
43
+ * There is unwise way to update hourAndMinuteHand you shuld modify it
42
44
43
45
Created By
44
46
------------
0 commit comments