wimagguc / ios-custom-alertview

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

Does not show at all #83

Open yeradis opened 9 years ago

yeradis commented 9 years ago

Running from the sample launch without problema

but when trying to launch elsewhere does not show anything

CustomIOSAlertView *alertView = [[CustomIOSAlertView alloc] init]; ..... [alertView show];

atomhax commented 8 years ago

I'm not the author, just a fellow user. I've have the Custom alert working in 2 separate controllers without issue.

I've can even get the plain version with no buttons to show. My guess is that either you're not setting a frame for the view. See the demo at the function -(void *) createDemoView. Or you may have not set the view controller as an CustomIOSAlertViewDelagate.

I had issues at first too and it was the former issue that I listed.

ashishj-optimus commented 8 years ago

I am trying to present it over TableView, unfortunately it's not showing up at all.

atomhax commented 8 years ago

Can you post your code for when you initialize your alert view?

macecchi commented 8 years ago

Are you trying to do this on viewDidLoad? As pointed out by @wimagguc, this solution might help: #26

sssbohdan commented 7 years ago

Just added library in 3rdParty and rewrite method show as - (void)showOverView:(UIView *)overView;

and changed code [[[[UIApplication sharedApplication] windows] firstObject] addSubview:self]; on [overView addSubview:self];