motion/core.rb in bubble-wrap-1.0.0 vs motion/core.rb in bubble-wrap-1.1.0
- old
+ new
@@ -9,16 +9,22 @@
# @return [UIcolor]
def rgba_color(r,g,b,a)
UIColor.colorWithRed((r/255.0), green:(g/255.0), blue:(b/255.0), alpha:a)
end
- def NSLocalizedString(key, value)
+ def localized_string(key, value)
NSBundle.mainBundle.localizedStringForKey(key, value:value, table:nil)
end
# I had issues with #p on the device, this is a temporary workaround
def p(arg)
NSLog arg.inspect
end
+ def create_uuid
+ uuid = CFUUIDCreate(nil)
+ uuid_string = CFUUIDCreateString(nil, uuid)
+ CFRelease(uuid)
+ uuid_string
+ end
+
end
-BW = BubbleWrap