sugarcube 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/sugarcube/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -287,7 +287,7 @@ UIControl
|
|
287
287
|
-----------
|
288
288
|
|
289
289
|
```ruby
|
290
|
-
button = UIButton.alloc.initWithFrame([0, 0,
|
290
|
+
button = UIButton.alloc.initWithFrame([[0, 0] ,[10, 10]])
|
291
291
|
|
292
292
|
button.on(:touch) { my_code }
|
293
293
|
button.on(:touch_up_outside, :touch_cancel) { |event|
|
@@ -1172,7 +1172,7 @@ url = 'http://localhost'.nsurl
|
|
1172
1172
|
url.nsdata # => NSData.dataWithContentsOfURL(self)
|
1173
1173
|
|
1174
1174
|
string_data.nsstring # => 'String'
|
1175
|
-
image_data.
|
1175
|
+
image_data.uiimage # => whatever 'an image' was
|
1176
1176
|
```
|
1177
1177
|
|
1178
1178
|
NSDate ([wiki][NSDate Wiki])
|
data/lib/sugarcube/version.rb
CHANGED