ios - Very poor performance after dismissViewController -
i have view controller presents 1 modally contains gif , table view animation on cells, , when dismiss it, app has annoyingly long delay before can again (like 3-5 seconds).
i've found answers it's because still have reference vc after dismissal, don't see how that's possible because place make reference in prepareforsegue.
any suggestions?
edit 1:
here prepareforsegue
:
override func prepareforsegue(segue: uistoryboardsegue, sender: anyobject?) { let destvc = segue.destinationviewcontroller as! inworkoutviewcontroller destvc.workout = workout }
the destvc's workout property optional custom class.
edit 2:
here how vc dismissed (still slow):
@ibaction func tappedx(sender: anyobject) { dispatch_async(dispatch_get_main_queue(), { [unowned self] in self.dismissviewcontrolleranimated(true, completion: nil) }) }
Comments
Post a Comment