mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-04 19:45:35 +08:00
Fixing bug in set_nav_bar button methods
This commit is contained in:
@@ -74,7 +74,7 @@ module ProMotion
|
||||
args[:target] ||= self
|
||||
args[:action] ||= nil
|
||||
|
||||
button = UIBarButtonItem.alloc.initWithTitle(title, style: args[:style], target: args[:target], action: args[:action])
|
||||
button = UIBarButtonItem.alloc.initWithTitle(args[:title], style: args[:style], target: args[:target], action: args[:action])
|
||||
|
||||
self.navigationItem.leftBarButtonItem = button if side == :left
|
||||
self.navigationItem.rightBarButtonItem = button if side == :right
|
||||
|
||||
Reference in New Issue
Block a user