README.md in ProMotion-0.1.1 vs README.md in ProMotion-0.1.2
- old
+ new
@@ -74,12 +74,12 @@
```
Add a nav_bar button and a tab_bar icon:
```ruby
-add_right_nav_button(label: "Save", action: :save)
-set_tab_bar_item(title: "Contacts", system_icon: UITabBarSystemItemContacts)
+set_nav_bar_right_button "Save", action: :save_something, type: UIBarButtonItemStyleDone
+set_tab_bar_item title: "Contacts", system_icon: UITabBarSystemItemContacts
```
Open a new screen:
```ruby
@@ -160,10 +160,10 @@
```ruby
@element = add_element UIView.alloc.initWithFrame(CGRectMake(0, 0, 20, 20)), {
backgroundColor: UIColor.whiteColor
}
-@element = set_attributes(UIView.alloc.initWithFrame(CGRectMake(0, 0, 20, 20)), {
+@element = set_attributes UIView.alloc.initWithFrame(CGRectMake(0, 0, 20, 20)), {
backgroundColor: UIColor.whiteColor
}
```
You can create sectioned table screens easily. TableScreen, SectionedTableScreen, GroupedTableScreen