From d601dc8b20c222a3fa85f2d34418b90b2f2cbc06 Mon Sep 17 00:00:00 2001 From: Steve Ross Date: Fri, 17 May 2013 16:59:47 -0700 Subject: [PATCH] fixed typo in README and test in on_create for args[:toolbar] is now unless args[:toolbar].nil? --- README.md | 4 ++-- lib/ProMotion/screens/_screen_module.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 767ffeb..3009e13 100644 --- a/README.md +++ b/README.md @@ -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 Performance note... It's best to build this array in a different method and store it in something like @table_data. Then your table_data 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 diff --git a/lib/ProMotion/screens/_screen_module.rb b/lib/ProMotion/screens/_screen_module.rb index 688e24a..4725ef1 100644 --- a/lib/ProMotion/screens/_screen_module.rb +++ b/lib/ProMotion/screens/_screen_module.rb @@ -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