wimagguc / ios-custom-alertview

Custom UIAlertView. Continue adding images and UIViews to dialogs in iOS7+
Other
1.66k stars 394 forks source link

The solution for show not working after iOS 10 #115

Open Cookiezby opened 6 years ago

Cookiezby commented 6 years ago

replace the line in show function [[[[UIApplication sharedApplication] windows] firstObject] addSubview:self]; to [[[UIApplication sharedApplication] keyWindow] addSubview:self];