cha_work 0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +23 -0
- data/lib/cha_work.rb +13 -0
- data/lib/cha_work/ChaMenu/cha_menu.rb +93 -0
- data/lib/cha_work/basic.rb +556 -0
- data/lib/cha_work/chawork.rb +34 -0
- data/lib/cha_work/msg.rb +26 -0
- data/lib/cha_work/persistence.rb +58 -0
- data/lib/cha_work/sugar/fixnum.rb +30 -0
- data/lib/cha_work/sugar/notificationcenter.rb +22 -0
- data/lib/cha_work/sugar/nsdate.rb +261 -0
- data/lib/cha_work/sugar/nsstring.rb +73 -0
- data/lib/cha_work/sugar/symbol.rb +865 -0
- data/lib/cha_work/sugar/time.rb +81 -0
- data/lib/cha_work/sugar/uiactionsheet.rb +189 -0
- data/lib/cha_work/sugar/uibutton.rb +7 -0
- data/lib/cha_work/sugar/uicontrol.rb +99 -0
- data/lib/cha_work/sugar/uiimageview.rb +4 -0
- data/lib/cha_work/sugar/uilabel.rb +21 -0
- data/lib/cha_work/sugar/uitableview.rb +13 -0
- data/lib/cha_work/sugar/uiview.rb +306 -0
- data/lib/cha_work/sugar/uiviewcontroller.rb +18 -0
- data/lib/cha_work/table/table.rb +151 -0
- data/lib/cha_work/table/table_screen.rb +6 -0
- data/lib/cha_work/version.rb +3 -0
- metadata +81 -0
@@ -0,0 +1,865 @@
|
|
1
|
+
=begin
|
2
|
+
Adds constant lookups to the Symbol class. These methods are prefixed with `ui`
|
3
|
+
or `ns` to make their intent clear, and to provide a little bit of "namespacing"
|
4
|
+
|
5
|
+
# alignment
|
6
|
+
:left.nsalignment => NSTextAlignmentLeft
|
7
|
+
|
8
|
+
# uicolors
|
9
|
+
:black.uicolor => UIColor.blackColor
|
10
|
+
|
11
|
+
You can extend the defaults by adding entries:
|
12
|
+
|
13
|
+
Symbol.css_colors[:my_color] = 0x123456
|
14
|
+
|
15
|
+
:my_color.uicolor => UIColor
|
16
|
+
=end
|
17
|
+
class Symbol
|
18
|
+
|
19
|
+
def uidevice
|
20
|
+
ChaWork.look_in(self, Symbol.uidevice)
|
21
|
+
end
|
22
|
+
|
23
|
+
def uideviceorientation
|
24
|
+
ChaWork.look_in(self, Symbol.uideviceorientation)
|
25
|
+
end
|
26
|
+
|
27
|
+
def uiinterfaceorientation
|
28
|
+
ChaWork.look_in(self, Symbol.uiinterfaceorientation)
|
29
|
+
end
|
30
|
+
alias uiorientation uiinterfaceorientation
|
31
|
+
|
32
|
+
def uiinterfacemask
|
33
|
+
ChaWork.look_in(self, Symbol.uiinterfacemask)
|
34
|
+
end
|
35
|
+
|
36
|
+
def uiautoresizemask
|
37
|
+
ChaWork.look_in(self, Symbol.uiautoresizemask, Symbol.uiautoresizemask__deprecated)
|
38
|
+
end
|
39
|
+
alias uiviewautoresizing uiautoresizemask
|
40
|
+
alias uiautoresizingmask uiautoresizemask
|
41
|
+
alias uiautoresize uiautoresizemask
|
42
|
+
|
43
|
+
def uireturnkey
|
44
|
+
ChaWork.look_in(self, Symbol.uireturnkey, Symbol.uireturnkey__deprecated)
|
45
|
+
end
|
46
|
+
|
47
|
+
def uikeyboardtype
|
48
|
+
ChaWork.look_in(self, Symbol.uikeyboardtype, Symbol.uikeyboardtype__deprecated)
|
49
|
+
end
|
50
|
+
|
51
|
+
def uitextalignment
|
52
|
+
ChaWork.log('uitextalignment is deprecated. Use nstextalignment instead.')
|
53
|
+
ChaWork.look_in(self, Symbol.nstextalignment)
|
54
|
+
end
|
55
|
+
alias uialignment uitextalignment
|
56
|
+
|
57
|
+
def nstextalignment
|
58
|
+
ChaWork.look_in(self, Symbol.nstextalignment)
|
59
|
+
end
|
60
|
+
alias nsalignment nstextalignment
|
61
|
+
|
62
|
+
def uilinebreakmode
|
63
|
+
ChaWork.log('uilinebreakmode is deprecated. Use nslinebreakmode instead.')
|
64
|
+
ChaWork.look_in(self, Symbol.nslinebreakmode)
|
65
|
+
end
|
66
|
+
|
67
|
+
def nslinebreakmode
|
68
|
+
ChaWork.look_in(self, Symbol.nslinebreakmode)
|
69
|
+
end
|
70
|
+
alias nslinebreak nslinebreakmode
|
71
|
+
|
72
|
+
def uibaselineadjustment
|
73
|
+
ChaWork.look_in(self, Symbol.uibaselineadjustment, Symbol.uibaselineadjustment__deprecated)
|
74
|
+
end
|
75
|
+
alias uibaseline uibaselineadjustment
|
76
|
+
|
77
|
+
def uibordertype
|
78
|
+
ChaWork.look_in(self, Symbol.uibordertype)
|
79
|
+
end
|
80
|
+
alias uiborderstyle uibordertype
|
81
|
+
|
82
|
+
def nsdatestyle
|
83
|
+
ChaWork.look_in(self, Symbol.nsdatestyle)
|
84
|
+
end
|
85
|
+
alias nsdateformatterstyle nsdatestyle
|
86
|
+
|
87
|
+
def nsnumberstyle
|
88
|
+
ChaWork.look_in(self, Symbol.nsnumberstyle, Symbol.nsnumberstyle__deprecated)
|
89
|
+
end
|
90
|
+
alias nsnumberformatterstyle nsnumberstyle
|
91
|
+
|
92
|
+
def uistatusbarstyle
|
93
|
+
ChaWork.look_in(self, Symbol.uistatusbarstyle)
|
94
|
+
end
|
95
|
+
|
96
|
+
def uibarmetrics
|
97
|
+
ChaWork.look_in(self, Symbol.uibarmetrics)
|
98
|
+
end
|
99
|
+
|
100
|
+
def uibarbuttonitem
|
101
|
+
ChaWork.look_in(self, Symbol.uibarbuttonitem, Symbol.uibarbuttonitem__deprecated)
|
102
|
+
end
|
103
|
+
|
104
|
+
def uibarbuttonstyle
|
105
|
+
ChaWork.look_in(self, Symbol.uibarbuttonstyle)
|
106
|
+
end
|
107
|
+
|
108
|
+
def uitabbarsystemitem
|
109
|
+
ChaWork.look_in(self, Symbol.uitabbarsystemitem)
|
110
|
+
end
|
111
|
+
alias uitabbaritem uitabbarsystemitem
|
112
|
+
|
113
|
+
def uibuttontype
|
114
|
+
ChaWork.look_in(self, Symbol.uibuttontype)
|
115
|
+
end
|
116
|
+
|
117
|
+
def uicontrolstate
|
118
|
+
ChaWork.look_in(self, Symbol.uicontrolstate)
|
119
|
+
end
|
120
|
+
alias uistate uicontrolstate
|
121
|
+
|
122
|
+
|
123
|
+
def uicontrolevent
|
124
|
+
ChaWork.look_in(self, Symbol.uicontrolevent, Symbol.uicontrolevent__deprecated)
|
125
|
+
end
|
126
|
+
|
127
|
+
def uiactivityindicatorstyle
|
128
|
+
ChaWork.look_in(self, Symbol.uiactivityindicatorstyle, Symbol.uiactivityindicatorstyle__deprecated)
|
129
|
+
end
|
130
|
+
alias uiactivityindicatorviewstyle uiactivityindicatorstyle
|
131
|
+
|
132
|
+
def uisegmentedstyle
|
133
|
+
ChaWork.look_in(self, Symbol.uisegmentedstyle)
|
134
|
+
end
|
135
|
+
alias uisegmentedcontrolstyle uisegmentedstyle
|
136
|
+
|
137
|
+
def uidatepickermode
|
138
|
+
ChaWork.look_in(self, Symbol.uidatepickermode, Symbol.uidatepickermode__deprecated)
|
139
|
+
end
|
140
|
+
|
141
|
+
def uicontentmode
|
142
|
+
ChaWork.look_in(self, Symbol.uicontentmode, Symbol.uicontentmode__deprecated)
|
143
|
+
end
|
144
|
+
alias uiviewcontentmode uicontentmode
|
145
|
+
|
146
|
+
def uianimationcurve
|
147
|
+
ChaWork.look_in(self, Symbol.uianimationcurve)
|
148
|
+
end
|
149
|
+
alias uiviewanimationcurve uianimationcurve
|
150
|
+
|
151
|
+
def uianimationoption
|
152
|
+
ChaWork.look_in(self, Symbol.uianimationoption)
|
153
|
+
end
|
154
|
+
alias uiviewanimationoption uianimationoption
|
155
|
+
|
156
|
+
def uitablestyle
|
157
|
+
ChaWork.look_in(self, Symbol.uitablestyle)
|
158
|
+
end
|
159
|
+
alias uitableviewstyle uitablestyle
|
160
|
+
|
161
|
+
def uitablerowanimation
|
162
|
+
ChaWork.look_in(self, Symbol.uitablerowanimation)
|
163
|
+
end
|
164
|
+
alias uitableviewrowanimation uitablerowanimation
|
165
|
+
|
166
|
+
def uitablecellstyle
|
167
|
+
ChaWork.look_in(self, Symbol.uitablecellstyle)
|
168
|
+
end
|
169
|
+
alias uitableviewcellstyle uitablecellstyle
|
170
|
+
|
171
|
+
def uitablecellaccessorytype
|
172
|
+
ChaWork.look_in(self, Symbol.uitablecellaccessorytype, Symbol.uitablecellaccessorytype__deprecated)
|
173
|
+
end
|
174
|
+
alias uitablecellaccessory uitablecellaccessorytype
|
175
|
+
alias uitableviewcellaccessorytype uitablecellaccessorytype
|
176
|
+
|
177
|
+
def uitablecellselectionstyle
|
178
|
+
ChaWork.look_in(self, Symbol.uitablecellselectionstyle)
|
179
|
+
end
|
180
|
+
alias uitableviewcellselectionstyle uitablecellselectionstyle
|
181
|
+
|
182
|
+
def uitablecellseparatorstyle
|
183
|
+
ChaWork.look_in(self, Symbol.uitablecellseparatorstyle, Symbol.uitablecellseparatorstyle__deprecated)
|
184
|
+
end
|
185
|
+
|
186
|
+
def uialertstyle
|
187
|
+
ChaWork.look_in(self, Symbol.uialertstyle)
|
188
|
+
end
|
189
|
+
alias uialertviewstyle uialertstyle
|
190
|
+
|
191
|
+
def uiactionstyle
|
192
|
+
ChaWork.look_in(self, Symbol.uiactionstyle)
|
193
|
+
end
|
194
|
+
alias uiactionsheetstyle uiactionstyle
|
195
|
+
|
196
|
+
def uialertcontrollerstyle
|
197
|
+
ChaWork.look_in(self, Symbol.uialertcontrollerstyle)
|
198
|
+
end
|
199
|
+
|
200
|
+
def uialertactionstyle
|
201
|
+
ChaWork.look_in(self, Symbol.uialertactionstyle)
|
202
|
+
end
|
203
|
+
|
204
|
+
def uiimagesource
|
205
|
+
ChaWork.look_in(self, Symbol.uiimagesource)
|
206
|
+
end
|
207
|
+
alias uiimagesourcetype uiimagesource
|
208
|
+
|
209
|
+
def uiimagecapture
|
210
|
+
ChaWork.look_in(self, Symbol.uiimagecapture)
|
211
|
+
end
|
212
|
+
alias uiimagecapturemode uiimagecapture
|
213
|
+
|
214
|
+
def uiimagecamera
|
215
|
+
ChaWork.look_in(self, Symbol.uiimagecamera)
|
216
|
+
end
|
217
|
+
alias uiimagecameradevice uiimagecamera
|
218
|
+
alias uiimagedevice uiimagecamera
|
219
|
+
|
220
|
+
def uiimagequality
|
221
|
+
ChaWork.look_in(self, Symbol.uiimagequality)
|
222
|
+
end
|
223
|
+
alias uiimagequalitytype uiimagequality
|
224
|
+
|
225
|
+
def catimingfunction
|
226
|
+
ChaWork.look_in(self, Symbol.catimingfunction, Symbol.catimingfunction__deprecated)
|
227
|
+
end
|
228
|
+
alias catiming catimingfunction
|
229
|
+
|
230
|
+
def cglinecap
|
231
|
+
ChaWork.look_in(self, Symbol.cglinecap)
|
232
|
+
end
|
233
|
+
alias cglinecapstyle cglinecap
|
234
|
+
|
235
|
+
def cglinejoin
|
236
|
+
ChaWork.look_in(self, Symbol.cglinejoin)
|
237
|
+
end
|
238
|
+
alias cglinejoinstyle cglinejoin
|
239
|
+
|
240
|
+
def uigesturerecognizerstate
|
241
|
+
ChaWork.look_in(self, Symbol.uigesturerecognizerstate)
|
242
|
+
end
|
243
|
+
alias uigesturestate uigesturerecognizerstate
|
244
|
+
|
245
|
+
class << self
|
246
|
+
attr :uidevice
|
247
|
+
attr :uideviceorientation
|
248
|
+
attr :uiinterfaceorientation
|
249
|
+
attr :uiinterfacemask
|
250
|
+
attr :uiautoresizemask
|
251
|
+
attr :uiautoresizemask__deprecated
|
252
|
+
|
253
|
+
attr :uireturnkey
|
254
|
+
attr :uireturnkey__deprecated
|
255
|
+
attr :uikeyboardtype
|
256
|
+
attr :uikeyboardtype__deprecated
|
257
|
+
attr :uitextalignment
|
258
|
+
attr :nstextalignment
|
259
|
+
attr :nslinebreakmode
|
260
|
+
attr :uibaselineadjustment__deprecated
|
261
|
+
attr :uibaselineadjustment
|
262
|
+
attr :uibordertype
|
263
|
+
attr :nsdatestyle
|
264
|
+
attr :nsnumberstyle
|
265
|
+
attr :nsnumberstyle__deprecated
|
266
|
+
|
267
|
+
attr :uistatusbarstyle
|
268
|
+
attr :uibarmetrics
|
269
|
+
attr :uibarbuttonitem
|
270
|
+
attr :uibarbuttonitem__deprecated
|
271
|
+
attr :uibarbuttonstyle
|
272
|
+
attr :uitabbarsystemitem
|
273
|
+
|
274
|
+
attr :uibuttontype
|
275
|
+
attr :uicontrolstate
|
276
|
+
attr :uicontrolevent
|
277
|
+
attr :uicontrolevent__deprecated
|
278
|
+
attr :uiactivityindicatorstyle
|
279
|
+
attr :uiactivityindicatorstyle__deprecated
|
280
|
+
attr :uisegmentedstyle
|
281
|
+
attr :uidatepickermode
|
282
|
+
attr :uidatepickermode__deprecated
|
283
|
+
attr :uicontentmode
|
284
|
+
attr :uicontentmode__deprecated
|
285
|
+
attr :uianimationcurve
|
286
|
+
attr :uianimationoption
|
287
|
+
|
288
|
+
attr :uitablestyle
|
289
|
+
attr :uitablerowanimation
|
290
|
+
attr :uitablecellstyle
|
291
|
+
attr :uitablecellaccessorytype
|
292
|
+
attr :uitablecellaccessorytype__deprecated
|
293
|
+
attr :uitablecellselectionstyle
|
294
|
+
attr :uitablecellseparatorstyle
|
295
|
+
attr :uitablecellseparatorstyle__deprecated
|
296
|
+
|
297
|
+
attr :uialertstyle
|
298
|
+
attr :uiactionstyle
|
299
|
+
|
300
|
+
attr :uialertcontrollerstyle
|
301
|
+
attr :uialertactionstyle
|
302
|
+
|
303
|
+
attr :uiimagesource
|
304
|
+
attr :uiimagecapture
|
305
|
+
attr :uiimagecamera
|
306
|
+
attr :uiimagequality
|
307
|
+
|
308
|
+
attr :catimingfunction
|
309
|
+
attr :catimingfunction__deprecated
|
310
|
+
|
311
|
+
attr :cglinecap
|
312
|
+
attr :cglinejoin
|
313
|
+
|
314
|
+
attr :uigesturerecognizerstate
|
315
|
+
|
316
|
+
end
|
317
|
+
|
318
|
+
@uidevice = {
|
319
|
+
iphone: UIUserInterfaceIdiomPhone,
|
320
|
+
ipad: UIUserInterfaceIdiomPad,
|
321
|
+
}
|
322
|
+
|
323
|
+
@uideviceorientation = {
|
324
|
+
unknown: UIDeviceOrientationUnknown,
|
325
|
+
portrait: UIDeviceOrientationPortrait,
|
326
|
+
upside_down: UIDeviceOrientationPortraitUpsideDown,
|
327
|
+
left: UIDeviceOrientationLandscapeLeft,
|
328
|
+
right: UIDeviceOrientationLandscapeRight,
|
329
|
+
face_up: UIDeviceOrientationFaceUp,
|
330
|
+
face_down: UIDeviceOrientationFaceDown
|
331
|
+
}
|
332
|
+
|
333
|
+
@uiinterfaceorientation = {
|
334
|
+
portrait: UIInterfaceOrientationPortrait,
|
335
|
+
upside_down: UIInterfaceOrientationPortraitUpsideDown,
|
336
|
+
left: UIInterfaceOrientationLandscapeLeft,
|
337
|
+
right: UIInterfaceOrientationLandscapeRight,
|
338
|
+
}
|
339
|
+
|
340
|
+
@uiinterfacemask = {
|
341
|
+
portrait: UIInterfaceOrientationMaskPortrait,
|
342
|
+
landscrape: UIInterfaceOrientationMaskLandscape,
|
343
|
+
left: UIInterfaceOrientationMaskLandscapeLeft,
|
344
|
+
right: UIInterfaceOrientationMaskLandscapeRight,
|
345
|
+
upside_down: UIInterfaceOrientationMaskPortraitUpsideDown,
|
346
|
+
all_but_upside_down: UIInterfaceOrientationMaskAllButUpsideDown,
|
347
|
+
iphone: UIInterfaceOrientationMaskAllButUpsideDown,
|
348
|
+
all: UIInterfaceOrientationMaskAll,
|
349
|
+
ipad: UIInterfaceOrientationMaskAll,
|
350
|
+
}
|
351
|
+
|
352
|
+
@uiautoresizemask__deprecated = {
|
353
|
+
full: :fill,
|
354
|
+
fixed_top: :fill_top,
|
355
|
+
fixed_bottom: :fill_bottom,
|
356
|
+
fixed_left: :fill_left,
|
357
|
+
fixed_right: :fill_right,
|
358
|
+
}
|
359
|
+
@uiautoresizemask = {
|
360
|
+
none: UIViewAutoresizingNone,
|
361
|
+
flexible_left: UIViewAutoresizingFlexibleLeftMargin,
|
362
|
+
flexible_width: UIViewAutoresizingFlexibleWidth,
|
363
|
+
flexible_right: UIViewAutoresizingFlexibleRightMargin,
|
364
|
+
flexible_top: UIViewAutoresizingFlexibleTopMargin,
|
365
|
+
flexible_height: UIViewAutoresizingFlexibleHeight,
|
366
|
+
flexible_bottom: UIViewAutoresizingFlexibleBottomMargin,
|
367
|
+
fill: UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight,
|
368
|
+
fill_top: UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleBottomMargin,
|
369
|
+
fill_bottom: UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin,
|
370
|
+
fill_left: UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleRightMargin,
|
371
|
+
fill_right: UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleLeftMargin,
|
372
|
+
fixed_top_left: UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleBottomMargin,
|
373
|
+
fixed_top_middle: UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleBottomMargin,
|
374
|
+
fixed_top_right: UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleBottomMargin,
|
375
|
+
fixed_middle_left: UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleRightMargin,
|
376
|
+
fixed_middle: UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin,
|
377
|
+
fixed_middle_right: UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleLeftMargin,
|
378
|
+
fixed_bottom_left: UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin,
|
379
|
+
fixed_bottom_middle: UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin,
|
380
|
+
fixed_bottom_right: UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin,
|
381
|
+
float_horizontal: UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin,
|
382
|
+
float_vertical: UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin,
|
383
|
+
}
|
384
|
+
|
385
|
+
@uireturnkey__deprecated = {
|
386
|
+
emergencycall: :emergency_call
|
387
|
+
}
|
388
|
+
@uireturnkey = {
|
389
|
+
default: UIReturnKeyDefault,
|
390
|
+
return: UIReturnKeyDefault,
|
391
|
+
go: UIReturnKeyGo,
|
392
|
+
google: UIReturnKeyGoogle,
|
393
|
+
join: UIReturnKeyJoin,
|
394
|
+
next: UIReturnKeyNext,
|
395
|
+
route: UIReturnKeyRoute,
|
396
|
+
search: UIReturnKeySearch,
|
397
|
+
send: UIReturnKeySend,
|
398
|
+
yahoo: UIReturnKeyYahoo,
|
399
|
+
done: UIReturnKeyDone,
|
400
|
+
emergency_call: UIReturnKeyEmergencyCall,
|
401
|
+
}
|
402
|
+
|
403
|
+
@uikeyboardtype__deprecated = {
|
404
|
+
asciicapable: :ascii_capable,
|
405
|
+
numbersandpunctuation: :numbers_and_punctuation,
|
406
|
+
numberpad: :number_pad,
|
407
|
+
phonepad: :phone_pad,
|
408
|
+
namephonepad: :name_phone_pad,
|
409
|
+
nameandphone: :name_and_phone,
|
410
|
+
emailaddress: :email_address,
|
411
|
+
}
|
412
|
+
@uikeyboardtype = {
|
413
|
+
default: UIKeyboardTypeDefault,
|
414
|
+
ascii_capable: UIKeyboardTypeASCIICapable,
|
415
|
+
ascii: UIKeyboardTypeASCIICapable,
|
416
|
+
numbers_and_punctuation: UIKeyboardTypeNumbersAndPunctuation,
|
417
|
+
url: UIKeyboardTypeURL,
|
418
|
+
number_pad: UIKeyboardTypeNumberPad,
|
419
|
+
number: UIKeyboardTypeNumberPad,
|
420
|
+
phone_pad: UIKeyboardTypePhonePad,
|
421
|
+
phone: UIKeyboardTypePhonePad,
|
422
|
+
name_phone_pad: UIKeyboardTypeNamePhonePad,
|
423
|
+
name_and_phone: UIKeyboardTypeNamePhonePad,
|
424
|
+
email_address: UIKeyboardTypeEmailAddress,
|
425
|
+
email: UIKeyboardTypeEmailAddress,
|
426
|
+
}
|
427
|
+
|
428
|
+
@nstextalignment = {
|
429
|
+
left: NSTextAlignmentLeft,
|
430
|
+
right: NSTextAlignmentRight,
|
431
|
+
center: NSTextAlignmentCenter,
|
432
|
+
}
|
433
|
+
|
434
|
+
@nslinebreakmode = {
|
435
|
+
word_wrapping: NSLineBreakByWordWrapping,
|
436
|
+
word_wrap: NSLineBreakByWordWrapping,
|
437
|
+
word: NSLineBreakByWordWrapping,
|
438
|
+
char_wrapping: NSLineBreakByCharWrapping,
|
439
|
+
char_wrap: NSLineBreakByCharWrapping,
|
440
|
+
character_wrap: NSLineBreakByCharWrapping,
|
441
|
+
char: NSLineBreakByCharWrapping,
|
442
|
+
clipping: NSLineBreakByClipping,
|
443
|
+
clip: NSLineBreakByClipping,
|
444
|
+
truncating_head: NSLineBreakByTruncatingHead,
|
445
|
+
head_truncation: NSLineBreakByTruncatingHead,
|
446
|
+
head: NSLineBreakByTruncatingHead,
|
447
|
+
truncating_tail: NSLineBreakByTruncatingTail,
|
448
|
+
tail_truncation: NSLineBreakByTruncatingTail,
|
449
|
+
tail: NSLineBreakByTruncatingTail,
|
450
|
+
truncating_middle: NSLineBreakByTruncatingMiddle,
|
451
|
+
middle_truncation: NSLineBreakByTruncatingMiddle,
|
452
|
+
middle: NSLineBreakByTruncatingMiddle
|
453
|
+
}
|
454
|
+
|
455
|
+
@uibaselineadjustment__deprecated = {
|
456
|
+
alignbaselines: :align_baselines,
|
457
|
+
aligncenters: :align_centers,
|
458
|
+
}
|
459
|
+
@uibaselineadjustment = {
|
460
|
+
align_baselines: UIBaselineAdjustmentAlignBaselines,
|
461
|
+
align_centers: UIBaselineAdjustmentAlignCenters,
|
462
|
+
none: UIBaselineAdjustmentNone,
|
463
|
+
}
|
464
|
+
|
465
|
+
@uibordertype = {
|
466
|
+
none: UITextBorderStyleNone,
|
467
|
+
line: UITextBorderStyleLine,
|
468
|
+
bezel: UITextBorderStyleBezel,
|
469
|
+
rounded: UITextBorderStyleRoundedRect,
|
470
|
+
rounded_rect: UITextBorderStyleRoundedRect,
|
471
|
+
}
|
472
|
+
|
473
|
+
@nsdatestyle = {
|
474
|
+
no: NSDateFormatterNoStyle,
|
475
|
+
none: NSDateFormatterNoStyle,
|
476
|
+
short: NSDateFormatterShortStyle,
|
477
|
+
medium: NSDateFormatterMediumStyle,
|
478
|
+
long: NSDateFormatterLongStyle,
|
479
|
+
full: NSDateFormatterFullStyle,
|
480
|
+
}
|
481
|
+
|
482
|
+
@nsnumberstyle__deprecated = {
|
483
|
+
spellout: :spell_out,
|
484
|
+
}
|
485
|
+
@nsnumberstyle = {
|
486
|
+
no: NSNumberFormatterNoStyle,
|
487
|
+
none: NSNumberFormatterNoStyle,
|
488
|
+
decimal: NSNumberFormatterDecimalStyle,
|
489
|
+
currency: NSNumberFormatterCurrencyStyle,
|
490
|
+
percent: NSNumberFormatterPercentStyle,
|
491
|
+
scientific: NSNumberFormatterScientificStyle,
|
492
|
+
spell_out: NSNumberFormatterSpellOutStyle,
|
493
|
+
}
|
494
|
+
|
495
|
+
@uistatusbarstyle = {
|
496
|
+
default: UIStatusBarStyleDefault,
|
497
|
+
black: UIStatusBarStyleBlackOpaque,
|
498
|
+
translucent: UIStatusBarStyleBlackTranslucent,
|
499
|
+
}
|
500
|
+
|
501
|
+
@uibarmetrics = {
|
502
|
+
default: UIBarMetricsDefault,
|
503
|
+
landscape: UIBarMetricsLandscapePhone,
|
504
|
+
}
|
505
|
+
|
506
|
+
@uibarbuttonitem__deprecated = {
|
507
|
+
flexiblespace: :flexible_space,
|
508
|
+
fixedspace: :fixed_space,
|
509
|
+
fastforward: :fast_forward,
|
510
|
+
pagecurl: :page_curl,
|
511
|
+
}
|
512
|
+
@uibarbuttonitem = {
|
513
|
+
done: UIBarButtonSystemItemDone,
|
514
|
+
cancel: UIBarButtonSystemItemCancel,
|
515
|
+
edit: UIBarButtonSystemItemEdit,
|
516
|
+
save: UIBarButtonSystemItemSave,
|
517
|
+
add: UIBarButtonSystemItemAdd,
|
518
|
+
flexible_space: UIBarButtonSystemItemFlexibleSpace,
|
519
|
+
fixed_space: UIBarButtonSystemItemFixedSpace,
|
520
|
+
compose: UIBarButtonSystemItemCompose,
|
521
|
+
reply: UIBarButtonSystemItemReply,
|
522
|
+
action: UIBarButtonSystemItemAction,
|
523
|
+
organize: UIBarButtonSystemItemOrganize,
|
524
|
+
bookmarks: UIBarButtonSystemItemBookmarks,
|
525
|
+
search: UIBarButtonSystemItemSearch,
|
526
|
+
refresh: UIBarButtonSystemItemRefresh,
|
527
|
+
stop: UIBarButtonSystemItemStop,
|
528
|
+
camera: UIBarButtonSystemItemCamera,
|
529
|
+
trash: UIBarButtonSystemItemTrash,
|
530
|
+
play: UIBarButtonSystemItemPlay,
|
531
|
+
pause: UIBarButtonSystemItemPause,
|
532
|
+
rewind: UIBarButtonSystemItemRewind,
|
533
|
+
fast_forward: UIBarButtonSystemItemFastForward,
|
534
|
+
undo: UIBarButtonSystemItemUndo,
|
535
|
+
redo: UIBarButtonSystemItemRedo,
|
536
|
+
page_curl: UIBarButtonSystemItemPageCurl,
|
537
|
+
}
|
538
|
+
|
539
|
+
@uibarbuttonstyle = {
|
540
|
+
plain: UIBarButtonItemStylePlain,
|
541
|
+
bordered: UIBarButtonItemStyleBordered,
|
542
|
+
done: UIBarButtonItemStyleDone
|
543
|
+
}
|
544
|
+
|
545
|
+
@uitabbarsystemitem = {
|
546
|
+
more: UITabBarSystemItemMore,
|
547
|
+
favorites: UITabBarSystemItemFavorites,
|
548
|
+
featured: UITabBarSystemItemFeatured,
|
549
|
+
top_rated: UITabBarSystemItemTopRated,
|
550
|
+
recents: UITabBarSystemItemRecents,
|
551
|
+
contacts: UITabBarSystemItemContacts,
|
552
|
+
history: UITabBarSystemItemHistory,
|
553
|
+
bookmarks: UITabBarSystemItemBookmarks,
|
554
|
+
search: UITabBarSystemItemSearch,
|
555
|
+
downloads: UITabBarSystemItemDownloads,
|
556
|
+
most_recent: UITabBarSystemItemMostRecent,
|
557
|
+
most_viewed: UITabBarSystemItemMostViewed,
|
558
|
+
}
|
559
|
+
|
560
|
+
@uibuttontype = {
|
561
|
+
custom: UIButtonTypeCustom,
|
562
|
+
rounded: UIButtonTypeRoundedRect,
|
563
|
+
rounded_rect: UIButtonTypeRoundedRect,
|
564
|
+
detail: UIButtonTypeDetailDisclosure,
|
565
|
+
detail_disclosure: UIButtonTypeDetailDisclosure,
|
566
|
+
info: UIButtonTypeInfoLight,
|
567
|
+
info_light: UIButtonTypeInfoLight,
|
568
|
+
info_dark: UIButtonTypeInfoDark,
|
569
|
+
contact: UIButtonTypeContactAdd,
|
570
|
+
contact_add: UIButtonTypeContactAdd,
|
571
|
+
}
|
572
|
+
if defined?(UIButtonTypeSystem)
|
573
|
+
@uibuttontype[:system] = UIButtonTypeSystem
|
574
|
+
end
|
575
|
+
|
576
|
+
@uicontrolstate = {
|
577
|
+
normal: UIControlStateNormal,
|
578
|
+
highlighted: UIControlStateHighlighted,
|
579
|
+
disabled: UIControlStateDisabled,
|
580
|
+
selected: UIControlStateSelected,
|
581
|
+
application: UIControlStateApplication,
|
582
|
+
}
|
583
|
+
|
584
|
+
@uicontrolevent__deprecated = {
|
585
|
+
changed: :change,
|
586
|
+
editing_did_endonexit: :editing_did_end_on_exit,
|
587
|
+
}
|
588
|
+
@uicontrolevent = {
|
589
|
+
touch: UIControlEventTouchUpInside,
|
590
|
+
touch_up: UIControlEventTouchUpInside,
|
591
|
+
touch_down: UIControlEventTouchDown,
|
592
|
+
touch_start: UIControlEventTouchDown | UIControlEventTouchDragEnter,
|
593
|
+
touch_stop: UIControlEventTouchUpInside | UIControlEventTouchCancel | UIControlEventTouchDragExit,
|
594
|
+
change: UIControlEventValueChanged | UIControlEventEditingChanged,
|
595
|
+
begin: UIControlEventEditingDidBegin,
|
596
|
+
end: UIControlEventEditingDidEnd,
|
597
|
+
|
598
|
+
touch_down_repeat: UIControlEventTouchDownRepeat,
|
599
|
+
touch_drag_inside: UIControlEventTouchDragInside,
|
600
|
+
touch_drag_outside: UIControlEventTouchDragOutside,
|
601
|
+
touch_drag_enter: UIControlEventTouchDragEnter,
|
602
|
+
touch_drag_exit: UIControlEventTouchDragExit,
|
603
|
+
touch_up_inside: UIControlEventTouchUpInside,
|
604
|
+
touch_up_outside: UIControlEventTouchUpOutside,
|
605
|
+
touch_cancel: UIControlEventTouchCancel,
|
606
|
+
|
607
|
+
value_changed: UIControlEventValueChanged,
|
608
|
+
|
609
|
+
editing_did_begin: UIControlEventEditingDidBegin,
|
610
|
+
# nice. very consistent APPLE:
|
611
|
+
editing_changed: UIControlEventEditingChanged,
|
612
|
+
# now here's consistency:
|
613
|
+
editing_did_change: UIControlEventEditingChanged,
|
614
|
+
editing_did_end: UIControlEventEditingDidEnd,
|
615
|
+
editing_did_end_on_exit: UIControlEventEditingDidEndOnExit,
|
616
|
+
|
617
|
+
all_touch: UIControlEventAllTouchEvents,
|
618
|
+
all_editing: UIControlEventAllEditingEvents,
|
619
|
+
application: UIControlEventApplicationReserved,
|
620
|
+
system: UIControlEventSystemReserved,
|
621
|
+
all: UIControlEventAllEvents,
|
622
|
+
}
|
623
|
+
|
624
|
+
@uiactivityindicatorstyle__deprecated = {
|
625
|
+
whitelarge: :white_large,
|
626
|
+
}
|
627
|
+
@uiactivityindicatorstyle = {
|
628
|
+
large: UIActivityIndicatorViewStyleWhiteLarge,
|
629
|
+
white_large: UIActivityIndicatorViewStyleWhiteLarge,
|
630
|
+
white: UIActivityIndicatorViewStyleWhite,
|
631
|
+
gray: UIActivityIndicatorViewStyleGray,
|
632
|
+
}
|
633
|
+
|
634
|
+
@uisegmentedstyle = {
|
635
|
+
plain: UISegmentedControlStylePlain,
|
636
|
+
bordered: UISegmentedControlStyleBordered,
|
637
|
+
bar: UISegmentedControlStyleBar,
|
638
|
+
bezeled: UISegmentedControlStyleBezeled,
|
639
|
+
}
|
640
|
+
|
641
|
+
@uidatepickermode__deprecated = {
|
642
|
+
dateandtime: :date_and_time,
|
643
|
+
countdowntimer: :count_down_timer,
|
644
|
+
}
|
645
|
+
@uidatepickermode = {
|
646
|
+
time: UIDatePickerModeTime,
|
647
|
+
date: UIDatePickerModeDate,
|
648
|
+
date_and_time: UIDatePickerModeDateAndTime,
|
649
|
+
count_down_timer: UIDatePickerModeCountDownTimer
|
650
|
+
}
|
651
|
+
|
652
|
+
@uicontentmode__deprecated = {
|
653
|
+
scaletofill: :scale_to_fill,
|
654
|
+
scaleaspectfit: :scale_aspect_fit,
|
655
|
+
scaleaspectfill: :scale_aspect_fill,
|
656
|
+
topleft: :top_left,
|
657
|
+
topright: :top_right,
|
658
|
+
bottomleft: :bottom_left,
|
659
|
+
bottomright: :bottom_right,
|
660
|
+
}
|
661
|
+
@uicontentmode = {
|
662
|
+
scale: UIViewContentModeScaleToFill,
|
663
|
+
scale_to_fill: UIViewContentModeScaleToFill,
|
664
|
+
fit: UIViewContentModeScaleAspectFit,
|
665
|
+
scale_aspect_fit: UIViewContentModeScaleAspectFit,
|
666
|
+
fill: UIViewContentModeScaleAspectFill,
|
667
|
+
scale_aspect_fill: UIViewContentModeScaleAspectFill,
|
668
|
+
redraw: UIViewContentModeRedraw,
|
669
|
+
center: UIViewContentModeCenter,
|
670
|
+
top: UIViewContentModeTop,
|
671
|
+
bottom: UIViewContentModeBottom,
|
672
|
+
left: UIViewContentModeLeft,
|
673
|
+
right: UIViewContentModeRight,
|
674
|
+
top_left: UIViewContentModeTopLeft,
|
675
|
+
top_right: UIViewContentModeTopRight,
|
676
|
+
bottom_left: UIViewContentModeBottomLeft,
|
677
|
+
bottom_right: UIViewContentModeBottomRight,
|
678
|
+
}
|
679
|
+
|
680
|
+
@uianimationcurve = {
|
681
|
+
ease_in_out: UIViewAnimationCurveEaseInOut,
|
682
|
+
ease_in: UIViewAnimationCurveEaseIn,
|
683
|
+
ease_out: UIViewAnimationCurveEaseOut,
|
684
|
+
linear: UIViewAnimationCurveLinear
|
685
|
+
}
|
686
|
+
|
687
|
+
@uianimationoption = {
|
688
|
+
layout_subviews: UIViewAnimationOptionLayoutSubviews,
|
689
|
+
allow_user_interaction: UIViewAnimationOptionAllowUserInteraction,
|
690
|
+
begin_from_current_state: UIViewAnimationOptionBeginFromCurrentState,
|
691
|
+
repeat: UIViewAnimationOptionRepeat,
|
692
|
+
autoreverse: UIViewAnimationOptionAutoreverse,
|
693
|
+
override_inherited_duration: UIViewAnimationOptionOverrideInheritedDuration,
|
694
|
+
override_inherited_curve: UIViewAnimationOptionOverrideInheritedCurve,
|
695
|
+
allow_animated_content: UIViewAnimationOptionAllowAnimatedContent,
|
696
|
+
show_hide_transition_views: UIViewAnimationOptionShowHideTransitionViews,
|
697
|
+
override_inherited_options: UIViewAnimationOptionOverrideInheritedOptions,
|
698
|
+
curve_ease_in_out: UIViewAnimationOptionCurveEaseInOut,
|
699
|
+
ease_in_out: UIViewAnimationOptionCurveEaseInOut,
|
700
|
+
curve_ease_in: UIViewAnimationOptionCurveEaseIn,
|
701
|
+
ease_in: UIViewAnimationOptionCurveEaseIn,
|
702
|
+
curve_ease_out: UIViewAnimationOptionCurveEaseOut,
|
703
|
+
ease_out: UIViewAnimationOptionCurveEaseOut,
|
704
|
+
curve_linear: UIViewAnimationOptionCurveLinear,
|
705
|
+
linear: UIViewAnimationOptionCurveLinear,
|
706
|
+
transition_none: UIViewAnimationOptionTransitionNone,
|
707
|
+
transition_flip_from_left: UIViewAnimationOptionTransitionFlipFromLeft,
|
708
|
+
transition_flip_from_right: UIViewAnimationOptionTransitionFlipFromRight,
|
709
|
+
transition_curl_up: UIViewAnimationOptionTransitionCurlUp,
|
710
|
+
transition_curl_down: UIViewAnimationOptionTransitionCurlDown,
|
711
|
+
transition_cross_dissolve: UIViewAnimationOptionTransitionCrossDissolve,
|
712
|
+
transition_flip_from_top: UIViewAnimationOptionTransitionFlipFromTop,
|
713
|
+
transition_flip_from_bottom: UIViewAnimationOptionTransitionFlipFromBottom,
|
714
|
+
}
|
715
|
+
|
716
|
+
@uitablestyle = {
|
717
|
+
plain: UITableViewStylePlain,
|
718
|
+
grouped: UITableViewStyleGrouped,
|
719
|
+
}
|
720
|
+
|
721
|
+
@uitablerowanimation = {
|
722
|
+
fade: UITableViewRowAnimationFade,
|
723
|
+
right: UITableViewRowAnimationRight,
|
724
|
+
left: UITableViewRowAnimationLeft,
|
725
|
+
top: UITableViewRowAnimationTop,
|
726
|
+
bottom: UITableViewRowAnimationBottom,
|
727
|
+
none: UITableViewRowAnimationNone,
|
728
|
+
middle: UITableViewRowAnimationMiddle,
|
729
|
+
automatic: UITableViewRowAnimationAutomatic,
|
730
|
+
}
|
731
|
+
|
732
|
+
@uitablecellstyle = {
|
733
|
+
default: UITableViewCellStyleDefault,
|
734
|
+
value1: UITableViewCellStyleValue1,
|
735
|
+
value2: UITableViewCellStyleValue2,
|
736
|
+
subtitle: UITableViewCellStyleSubtitle,
|
737
|
+
}
|
738
|
+
|
739
|
+
@uitablecellaccessorytype__deprecated = {
|
740
|
+
disclosureindicator: :disclosure_indicator,
|
741
|
+
detaildisclosurebutton: :detail_disclosure_button,
|
742
|
+
}
|
743
|
+
@uitablecellaccessorytype = {
|
744
|
+
none: UITableViewCellAccessoryNone,
|
745
|
+
disclosure: UITableViewCellAccessoryDisclosureIndicator,
|
746
|
+
disclosure_indicator: UITableViewCellAccessoryDisclosureIndicator,
|
747
|
+
detail: UITableViewCellAccessoryDetailDisclosureButton,
|
748
|
+
detail_disclosure_button: UITableViewCellAccessoryDetailDisclosureButton,
|
749
|
+
checkmark: UITableViewCellAccessoryCheckmark,
|
750
|
+
}
|
751
|
+
|
752
|
+
@uitablecellselectionstyle = {
|
753
|
+
none: UITableViewCellSelectionStyleNone,
|
754
|
+
blue: UITableViewCellSelectionStyleBlue,
|
755
|
+
gray: UITableViewCellSelectionStyleGray,
|
756
|
+
}
|
757
|
+
|
758
|
+
@uitablecellseparatorstyle__deprecated = {
|
759
|
+
singleline: :single_line,
|
760
|
+
singlelineetched: :single_line_etched,
|
761
|
+
}
|
762
|
+
@uitablecellseparatorstyle = {
|
763
|
+
none: UITableViewCellSeparatorStyleNone,
|
764
|
+
single_line: UITableViewCellSeparatorStyleSingleLine,
|
765
|
+
single: UITableViewCellSeparatorStyleSingleLine,
|
766
|
+
single_line_etched: UITableViewCellSeparatorStyleSingleLineEtched,
|
767
|
+
etched: UITableViewCellSeparatorStyleSingleLineEtched,
|
768
|
+
}
|
769
|
+
|
770
|
+
@uialertstyle = {
|
771
|
+
default: UIAlertViewStyleDefault,
|
772
|
+
secure_text_input: UIAlertViewStyleSecureTextInput,
|
773
|
+
plain_text_input: UIAlertViewStylePlainTextInput,
|
774
|
+
login_and_password_input: UIAlertViewStyleLoginAndPasswordInput,
|
775
|
+
}
|
776
|
+
|
777
|
+
if defined?(UIAlertControllerStyleAlert)
|
778
|
+
@uialertcontrollerstyle = {
|
779
|
+
alert: UIAlertControllerStyleAlert,
|
780
|
+
action_sheet: UIAlertControllerStyleActionSheet
|
781
|
+
}
|
782
|
+
|
783
|
+
@uialertactionstyle = {
|
784
|
+
default: UIAlertActionStyleDefault,
|
785
|
+
cancel: UIAlertActionStyleCancel,
|
786
|
+
destructive: UIAlertActionStyleDestructive
|
787
|
+
}
|
788
|
+
else
|
789
|
+
@uialertcontrollerstyle = {}
|
790
|
+
@uialertactionstyle = {}
|
791
|
+
end
|
792
|
+
|
793
|
+
@uiactionstyle = {
|
794
|
+
automatic: UIActionSheetStyleAutomatic,
|
795
|
+
default: UIActionSheetStyleDefault,
|
796
|
+
black_translucent: UIActionSheetStyleBlackTranslucent,
|
797
|
+
black_opaque: UIActionSheetStyleBlackOpaque,
|
798
|
+
}
|
799
|
+
|
800
|
+
@uiimagesource = {
|
801
|
+
camera: UIImagePickerControllerSourceTypeCamera,
|
802
|
+
library: UIImagePickerControllerSourceTypePhotoLibrary,
|
803
|
+
album: UIImagePickerControllerSourceTypeSavedPhotosAlbum,
|
804
|
+
}
|
805
|
+
|
806
|
+
@uiimagecapture = {
|
807
|
+
photo: UIImagePickerControllerCameraCaptureModePhoto,
|
808
|
+
video: UIImagePickerControllerCameraCaptureModeVideo,
|
809
|
+
}
|
810
|
+
|
811
|
+
@uiimagecamera = {
|
812
|
+
front: UIImagePickerControllerCameraDeviceFront,
|
813
|
+
rear: UIImagePickerControllerCameraDeviceRear,
|
814
|
+
}
|
815
|
+
|
816
|
+
@uiimagequality = {
|
817
|
+
high: UIImagePickerControllerQualityTypeHigh,
|
818
|
+
medium: UIImagePickerControllerQualityTypeMedium,
|
819
|
+
low: UIImagePickerControllerQualityTypeLow,
|
820
|
+
vga: UIImagePickerControllerQualityType640x480,
|
821
|
+
i1280x720: UIImagePickerControllerQualityTypeIFrame1280x720,
|
822
|
+
i1280: UIImagePickerControllerQualityTypeIFrame1280x720,
|
823
|
+
i720: UIImagePickerControllerQualityTypeIFrame1280x720,
|
824
|
+
i960x540: UIImagePickerControllerQualityTypeIFrame960x540,
|
825
|
+
i960: UIImagePickerControllerQualityTypeIFrame960x540,
|
826
|
+
i540: UIImagePickerControllerQualityTypeIFrame960x540,
|
827
|
+
}
|
828
|
+
|
829
|
+
@catimingfunction__deprecated = {
|
830
|
+
easein: :ease_in,
|
831
|
+
easeout: :ease_out,
|
832
|
+
easeinout: :ease_in_out,
|
833
|
+
}
|
834
|
+
@catimingfunction = {
|
835
|
+
linear: KCAMediaTimingFunctionLinear,
|
836
|
+
ease_in: KCAMediaTimingFunctionEaseIn,
|
837
|
+
ease_out: KCAMediaTimingFunctionEaseOut,
|
838
|
+
ease_in_out: KCAMediaTimingFunctionEaseInEaseOut,
|
839
|
+
ease_in_ease_out: KCAMediaTimingFunctionEaseInEaseOut,
|
840
|
+
default: KCAMediaTimingFunctionDefault,
|
841
|
+
}
|
842
|
+
|
843
|
+
@cglinecap = {
|
844
|
+
butt: KCGLineCapButt,
|
845
|
+
round: KCGLineCapRound,
|
846
|
+
square: KCGLineCapSquare,
|
847
|
+
}
|
848
|
+
|
849
|
+
@cglinejoin = {
|
850
|
+
miter: KCGLineJoinMiter,
|
851
|
+
round: KCGLineJoinRound,
|
852
|
+
bevel: KCGLineJoinBevel,
|
853
|
+
}
|
854
|
+
|
855
|
+
@uigesturerecognizerstate = {
|
856
|
+
possible: UIGestureRecognizerStatePossible,
|
857
|
+
began: UIGestureRecognizerStateBegan,
|
858
|
+
changed: UIGestureRecognizerStateChanged,
|
859
|
+
ended: UIGestureRecognizerStateEnded,
|
860
|
+
cancelled: UIGestureRecognizerStateCancelled,
|
861
|
+
failed: UIGestureRecognizerStateFailed,
|
862
|
+
recognized: UIGestureRecognizerStateRecognized,
|
863
|
+
}
|
864
|
+
|
865
|
+
end
|