no message

This commit is contained in:
Peter
2016-11-22 21:29:16 +03:00
parent 962940aae9
commit 28457a2e16
13 changed files with 1351 additions and 936 deletions

View File

@@ -52,11 +52,12 @@ final class PresentationContext {
strongSelf.controllers.append(controller)
if let view = strongSelf.view, let layout = strongSelf.layout {
controller.navigation_setDismiss { [weak strongSelf, weak controller] in
controller.navigation_setDismiss({ [weak strongSelf, weak controller] in
if let strongSelf = strongSelf, let controller = controller {
strongSelf.dismiss(controller)
}
}
}, rootController: nil)
controller.setIgnoreAppearanceMethodInvocations(true)
if layout != initialLayout {
controller.view.frame = CGRect(origin: CGPoint(), size: layout.size)
view.addSubview(controller.view)
@@ -64,6 +65,7 @@ final class PresentationContext {
} else {
view.addSubview(controller.view)
}
controller.setIgnoreAppearanceMethodInvocations(false)
view.layer.invalidateUpTheTree()
controller.viewWillAppear(false)
controller.viewDidAppear(false)