ios - EXC_BAD_ACCESS with viewWillTransitionToSize and Xcode 7 -
i exc_bad_access viewwilltransitiontosize in xcode 7. solution posted here exc_bad_access viewwilltransitiontosize , xcode 6.3 worked untill upgraded xcode 7.
override func viewwilltransitiontosize(size: cgsize, withtransitioncoordinator coordinator: uiviewcontrollertransitioncoordinator) { super.viewwilltransitiontosize(size, withtransitioncoordinator: coordinator) if let safecoordinator = coordinator uiviewcontrollertransitioncoordinator? { // error: exc_bad_access here print("coordinator != nil") safecoordinator.animatealongsidetransition({ context in self.tableview.frame = cgrectmake(0, 0, size.width, size.height) }, completion: nil) } else { print("coordinator == nil") } }
any appriciated.
Comments
Post a Comment