diff --git a/templates/metal_table_screen/app/screens/name_screen.rb b/templates/metal_table_screen/app/screens/name_screen.rb index 6e3ea27..3a3b443 100644 --- a/templates/metal_table_screen/app/screens/name_screen.rb +++ b/templates/metal_table_screen/app/screens/name_screen.rb @@ -54,8 +54,6 @@ class <%= @name_camel_case %>Screen < UITableViewController cell end - # Remove the following if you're only using portrait - # You don't have to reapply styles to all UIViews, if you want to optimize, another way to do it # is tag the views you need to restyle in your stylesheet, then only reapply the tagged views, like so: # def logo(st) @@ -67,6 +65,8 @@ class <%= @name_camel_case %>Screen < UITableViewController # # Then in will_animate_rotate # find(:reapply_style).reapply_styles# + + # Remove the following if you're only using portrait def will_animate_rotate(orientation, duration) reapply_styles end diff --git a/templates/screen/app/screens/name_screen.rb b/templates/screen/app/screens/name_screen.rb index ce012ff..1322211 100644 --- a/templates/screen/app/screens/name_screen.rb +++ b/templates/screen/app/screens/name_screen.rb @@ -10,8 +10,6 @@ class <%= @name_camel_case %>Screen < PM::<%= @screen_base %> end <% end %> - # Remove the following if you're only using portrait - # You don't have to reapply styles to all UIViews, if you want to optimize, another way to do it # is tag the views you need to restyle in your stylesheet, then only reapply the tagged views, like so: # def logo(st) @@ -23,6 +21,8 @@ class <%= @name_camel_case %>Screen < PM::<%= @screen_base %> # # Then in will_animate_rotate # find(:reapply_style).reapply_styles# + + # Remove the following if you're only using portrait def will_animate_rotate(orientation, duration) reapply_styles end