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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -