lib/ProMotion/screens/_screen_module.rb in ProMotion-0.6.1 vs lib/ProMotion/screens/_screen_module.rb in ProMotion-0.6.2

- old
+ new

@@ -86,9 +86,11 @@ UIBarButtonItem.alloc.initWithTitle(args[:title], style: args[:style], target: args[:target], action: args[:action]) when UIImage UIBarButtonItem.alloc.initWithImage(args[:title], style: args[:style], target: args[:target], action: args[:action]) when Symbol, NilClass UIBarButtonItem.alloc.initWithBarButtonSystemItem(args[:system_icon], target: args[:target], action: args[:action]) if args[:system_icon] + when UIBarButtonItem + args[:title] else PM.logger.error("Please supply a title string, a UIImage or :system.") end self.navigationItem.leftBarButtonItem = button if side == :left