class UIColor
Public Instance Methods
alpha()
click to toggle source
# File lib/swipe_action_cell/ui_color.rb, line 18 def alpha c = CGColorGetComponents(self.CGColor) c[CGColorGetNumberOfComponents(self.CGColor) - 1] end
blue()
click to toggle source
# File lib/swipe_action_cell/ui_color.rb, line 13 def blue c = CGColorGetComponents(self.CGColor) c[2] end
green()
click to toggle source
# File lib/swipe_action_cell/ui_color.rb, line 8 def green c = CGColorGetComponents(self.CGColor) c[1] end
red()
click to toggle source
# File lib/swipe_action_cell/ui_color.rb, line 3 def red c = CGColorGetComponents(self.CGColor) c[0] end