Class: MIM::MotionBrowserToolbar

Inherits:
UIToolbar
  • Object
show all
Defined in:
lib/uikit/motion_browser_toolbar.rb

Instance Method Summary collapse

Instance Method Details

#delegate=(delegate) ⇒ Object



15
16
17
# File 'lib/uikit/motion_browser_toolbar.rb', line 15

def delegate=(delegate)
  @back.delegate = @forward.delegate = @share.delegate = delegate
end

#initObject



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/uikit/motion_browser_toolbar.rb', line 3

def init
  super

  @back    = BackBarButtonItem.create
  @forward = ForwardBarButtonItem.create
  @share   = ShareBarButtonItem.create
  @space   = UIBarButtonItem.alloc.initWithBarButtonSystemItem(UIBarButtonSystemItemFlexibleSpace, target: nil, action: nil)
  setItems([@share, @space, @back, @forward], animated: false)

  self
end