I want to present an alert window with no button on it, that means user can't close it by themselves, only the code from mine can dismiss the alert. How to implement that?
UIAlertView *message = [[UIAlertView alloc] initWithTitle:@"Hello World!"
message:@"This is sample message."
delegate:self
cancelButtonTitle:nil
otherButtonTitles:nil];
message.tag = 123;
[message show];
[message release]
use this to make alert with no button
To dismiss the alertview use some logic similar to this
UIAlertView *alert = (UIAlertView)[[self.view viewWithTag:123]
[alert dismissWithClickedButtonIndex:0 animated:TRUE];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With