mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-13 02:01:55 +08:00
Merge branch 'master' into version-2.3
This commit is contained in:
@@ -16,8 +16,8 @@ module ProMotion
|
||||
add_nav_bar(args) if args[:nav_bar]
|
||||
add_nav_bar_buttons
|
||||
tab_bar_setup
|
||||
try :screen_setup
|
||||
try :on_init
|
||||
try :screen_setup
|
||||
PM.logger.deprecated "In #{self.class.to_s}, #on_create has been deprecated and removed. Use #screen_init instead." if respond_to?(:on_create)
|
||||
end
|
||||
|
||||
|
||||
@@ -73,6 +73,9 @@ module ProMotion
|
||||
if data_cell[:accessory][:view] == :switch
|
||||
self.accessoryView = switch_view
|
||||
else
|
||||
if data_cell[:accessory][:view].superview && data_cell[:accessory][:view].superview.is_a?(UITableViewCell)
|
||||
data_cell[:accessory][:view].superview.accessoryView = nil # Fix for issue #586
|
||||
end
|
||||
self.accessoryView = data_cell[:accessory][:view]
|
||||
self.accessoryView.autoresizingMask = UIViewAutoresizingFlexibleWidth
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user