mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-04 19:45:35 +08:00
fixed typo in README and test in on_create for args[:toolbar] is now unless args[:toolbar].nil?
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user