Created
June 6, 2014 00:32
-
-
Save nolim1t/9f30ff97e7cf9920f84d to your computer and use it in GitHub Desktop.
Currently gets a Bad access error. Any ideas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class AlertClass: NSObject { | |
func ShowAlertBox(title : NSString, msg : NSString) { | |
var alertMsg = UIAlertView(title: title, message: msg, delegate: nil, cancelButtonTitle: "Dismiss") | |
alertMsg.show() | |
} | |
} |
Hey, so UIAlertView is deprecated in iOS 8 so that's probably why it doesn't work anymore. Check out the accepted answer on SO here:
http://stackoverflow.com/questions/24022479/how-would-i-create-a-uialertview-in-swift
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems a like a common issue
rdar://17189590 and rdar://17188083