Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom UIAlertView?

Seeing as the blue doesn't go with my UI interface, im just wondering if there is a way to change the colour of the uialertview, or use a image instead. With all the buttons, 'dismiss' etc still there

Thanks

like image 949
laaaa Avatar asked Jul 28 '11 01:07

laaaa


2 Answers

The fine folks at CodeCropper just put out an open-source control that lets you create custom alert views. It's awesome.

enter image description here

https://github.com/gpambrozio/BlockAlertsAnd-ActionSheets

like image 68
sudo rm -rf Avatar answered Oct 24 '22 06:10

sudo rm -rf


You could try presenting a Modal View Controller with a transparent background.

    ModalViewController *popupController = [[ModalViewController alloc] initWithNibName:@"ModalViewController" bundle:nil]; 
[self presentModalViewController:popupController animated:NO];  

Something like this for the ModalView (http://stackoverflow.com/questions/849458/transparent-modal-view-on-navigation-controller)

This way you can create a custom Alert, but it's really a modal view that you can customize

like image 30
Sum Avatar answered Oct 24 '22 06:10

Sum