Class: MMDrawerBarButtonItem
- Inherits:
-
UIBarButtonItem
- Object
- UIBarButtonItem
- MMDrawerBarButtonItem
- Defined in:
- lib/liam/MMDrawerBarButtonItem.rb
Instance Attribute Summary collapse
-
#buttonView ⇒ Object
Returns the value of attribute buttonView.
Instance Method Summary collapse
-
#initWithTarget(target, action: action) ⇒ Object
def initWithTarget:(id)target action:(SEL)action{.
- #menuButtonColorForState(state) ⇒ Object
- #setMenuButtonColor(color, forState: state) ⇒ Object
- #setShadowColor(color, forState: state) ⇒ Object
- #shadowColorForState(state) ⇒ Object
Instance Attribute Details
#buttonView ⇒ Object
Returns the value of attribute buttonView.
3 4 5 |
# File 'lib/liam/MMDrawerBarButtonItem.rb', line 3 def end |
Instance Method Details
#initWithTarget(target, action: action) ⇒ Object
def initWithTarget:(id)target action:(SEL)action{
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/liam/MMDrawerBarButtonItem.rb', line 6 def initWithTarget(target, action:action) = MMDrawerMenuButtonView.alloc.initWithFrame([[0, 0], [26, 26]]) .addTarget(target, action:action, forControlEvents:UIControlEventTouchUpInside) self.initWithCustomView() if self self. = end return self end |
#menuButtonColorForState(state) ⇒ Object
21 22 23 |
# File 'lib/liam/MMDrawerBarButtonItem.rb', line 21 def (state) return self..(state) end |
#setMenuButtonColor(color, forState: state) ⇒ Object
25 26 27 |
# File 'lib/liam/MMDrawerBarButtonItem.rb', line 25 def setMenuButtonColor(color, forState:state) self..setMenuButtonColor(color, forState:state) end |
#setShadowColor(color, forState: state) ⇒ Object
33 34 35 36 |
# File 'lib/liam/MMDrawerBarButtonItem.rb', line 33 def setShadowColor(color, forState:state) # state = UIControlState self..setShadowColor(color, forState:state) end |
#shadowColorForState(state) ⇒ Object
29 30 31 |
# File 'lib/liam/MMDrawerBarButtonItem.rb', line 29 def shadowColorForState(state) return self..shadowColorForState(state) end |