Merge branch 'master' of github.com:clearsightstudio/ProMotion into cell-accessory-switch-fix

# By Jamon Holmgren (2) and Stephan Toggweiler (1)
# Via Jamon Holmgren
* 'master' of github.com:clearsightstudio/ProMotion:
  Version 0.7.3
  Fixed crash when closing a screen directly from a bar button action.
  Promotion update_table_data for Formotion
This commit is contained in:
Mark Rickert
2013-06-06 11:00:18 -04:00
3 changed files with 9 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ module ProMotion
def close_screen(args = {})
args ||= {}
args = { sender: args } unless args.is_a?(Hash)
args[:animated] ||= true
if self.modal?

View File

@@ -19,6 +19,13 @@ module ProMotion
s
end
# emulate the ProMotion table update for formotion
def update_table_data
self.form = table_data
self.form.controller = self
self.tableView.reloadData
end
def viewDidLoad
super

View File

@@ -1,3 +1,3 @@
module ProMotion
VERSION = "0.7.2" unless defined?(ProMotion::VERSION)
VERSION = "0.7.3" unless defined?(ProMotion::VERSION)
end