mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-31 01:35:41 +08:00
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:
@@ -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?
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
module ProMotion
|
||||
VERSION = "0.7.2" unless defined?(ProMotion::VERSION)
|
||||
VERSION = "0.7.3" unless defined?(ProMotion::VERSION)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user