FUIAlertView Issue - Swift
v1n2e7t opened this issue · comments
v1n2e7t commented
FUIAlertView crashing in Swift,
This will run:
let alert = FUIAlertView()
alert.title = "Title"
alert.message = "Message"
alert.addButtonWithTitle("Ok")
alert.show()
However nothing is visible
This works:
let alert = UIAlertView()
alert.title = "Title"
alert.message = "Message"
alert.addButtonWithTitle("Ok")
alert.show()
but thats a standard UIAlertView
when i try to add any sort of styling like this:
let alert = FUIAlertView()
alert.title = "Title"
alert.message = "Message"
alert.addButtonWithTitle("Ok")
alert.backgroundOverlay.backgroundColor = UIColor.cloudsColor().colorWithAlphaComponent(0.8)
alert.show()
it crashes with the following error:
fatal error: unexpectedly found nil while unwrapping an Optional value
Is there any solution or work around to this?
Eduard Panasiuk commented