SCLAlertView-Swift
SCLAlertView-Swift copied to clipboard
It does not work when use the AlertView in the present ViewController
When i use the SCLAlertView in the presented ViewController it will not work.
And then i change the code from:
let rv = UIApplication.sharedApplication().keyWindow.subviews.first as UIView
to
let rv = UIApplication.sharedApplication().keyWindow.subviews.last as UIView
then it works!
My sight is not so good, but the statements look identical.
On Jan 18, 2015, at 8:45 AM, wenjiez [email protected] wrote:
When i use the SCLAlertView in the presented ViewController it will not work.
And then i change the code from:
let rv = UIApplication.sharedApplication().keyWindow.subviews.last as UIView to
let rv = UIApplication.sharedApplication().keyWindow.subviews.last as UIView then it works!
— Reply to this email directly or view it on GitHub https://github.com/vikmeup/SCLAlertView-Swift/issues/38.
Sorry, i have updated the comment. Thanks!
This occurs for me as well. But only when using a transition manager.
@cloud-hot I had the same issue as you did and your fix works perfectly for me, thank you!
@vikmeup , could you help check whether this is a bug or has it been fixed on the new version? Thanks!