You must use Current Context for iOS 7.
To check the iOS version, you can use NSFoundationVersionNumber .
let iOS7 = floor(NSFoundationVersionNumber) <= floor(NSFoundationVersionNumber_iOS_7_1) let iOS8 = floor(NSFoundationVersionNumber) > floor(NSFoundationVersionNumber_iOS_7_1)
Then you can check which version is running and use OverCurrentContext or CurrentContext .
if iOS8 { self.modalPresentationStyle = UIModalPresentationStyle.OverCurrentContext } else { self.modalPresentationStyle = UIModalPresentationStyle.CurrentContext }
source share