iOS 7 deprecated dismissModalViewControllerAnimated -> dismissViewContro...

...llerAnimated

Backwards compatibility included.