fixed typo in README and test in on_create for args[:toolbar] is now unless args[:toolbar].nil?

This commit is contained in:
Steve Ross
2013-05-17 16:59:47 -07:00
parent 69e8d585b4
commit d601dc8b20
2 changed files with 3 additions and 3 deletions

View File

@@ -123,7 +123,7 @@ class AppDelegate < ProMotion::Delegate
end
```
Note: You can use other keysin `on_load` when you open a new screen:
Note: You can use other keys in `on_load` when you open a new screen:
* `modal: ` [`true` | `false`]
* `toolbar:` [`true` | `false`]
@@ -786,7 +786,7 @@ end</code></pre>
<strong>Performance note...</strong> It's best to build this array in a different method
and store it in something like <code>@table_data</code>. Then your <code>table_data</code>
method just returns that.
It's common to add labels to a subclassed tableview cell, so ProMotion finds any attributes
that end in `_label` in your input hash and tries to assign to them without going through the
hoop-jumping of using `:cell_class_attributes`. This only applies to tables cells where you have

View File

@@ -18,7 +18,7 @@ module ProMotion
end
self.add_nav_bar if args[:nav_bar]
self.navigationController.toolbarHidden = !args[:toolbar] if args[:toolbar]
self.navigationController.toolbarHidden = !args[:toolbar] unless args[:toolbar].nil?
self.on_init if self.respond_to?(:on_init)
self.table_setup if self.respond_to?(:table_setup)
self