Closing a view displayed via a modal segue

If your deployment target is iOS 5.0 or later, use this message:

[self dismissViewControllerAnimated:YES completion:nil];

Or in Swift:

self.dismissViewControllerAnimated(true, completion: nil)

If your deployment target is older, use this (deprecated) message:

[self dismissModalViewControllerAnimated:YES];

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)