lib/ProMotion/helpers/TabBar.rb in ProMotion-0.2.0 vs lib/ProMotion/helpers/TabBar.rb in ProMotion-0.3.0
- old
+ new
@@ -1,35 +1,7 @@
module ProMotion
class TabBar
class << self
- # def tab_bar_item(args = {})
- # title = "Untitled"
- # title = args[:title] if args[:title]
- # args[:tag] ||= 0
-
- # tb_item = tab_bar_icon(args[:system_icon], args[:tag]) if args[:system_icon]
- # tb_item = tab_bar_icon_custom(title, args[:icon], args[:tag]) if args[:icon]
-
- # if tb_item
- # tb_item.badgeValue = args[:badge_number].to_s unless args[:badge_number].nil? || tab[:badge_number] <= 0
-
- # return tb_item
- # end
- # nil
- # end
-
- # def tab_bar_icon(icon, tag)
- # return UITabBarItem.alloc.initWithTabBarSystemItem(icon, tag: tag)
- # end
-
- # def tab_bar_icon_custom(title, image_name, tag)
- # icon_image = UIImage.imageNamed(image_name)
- # return UITabBarItem.alloc.initWithTitle(title, image:icon_image, tag:tag)
- # end
-
-
-
-
def create_tab_bar_controller_from_data(data)
data = self.setTags(data)
tabBarController = UITabBarController.alloc.init
tabBarController.viewControllers = self.tab_controllers_from_data(data)
\ No newline at end of file