How can I display an UIAlertView as full screen in iOS ? Am very problem some times pop up tableview. So using alertview displaying tableview is easy but it is not expandng size. For that how can dispaly alertview in full screen in iOs ?
How can I display an UIAlertView as full screen in iOS?
1.7k views Asked by Karthik Mandava At
2
There are 2 answers
0
On
iOS Developer Library says:
Use the properties and methods defined in this class to set the title, message, and delegate of an alert view and configure the buttons. You must set a delegate if you add custom buttons. The delegate should conform to the UIAlertViewDelegate protocol. Use the show method to display an alert view once it is configured.
so there is no way to modify the UIALertView
. You need to create your own AlertView
.
Just create a view and make it visible when you need show an alert. Also there are examples on github like this . Also you can find on Cocoapods examples.
You cannot change/alter apples default UIAlertView.
Instead use custom view and mimic and behavior of it, and you might want to add
YourCustomAlertView
to like:Using it like:
[CustomAlert alertShow];
Note: This is just a guide to make
CustomUIAlertView
or if you dont feel like making your own search for some ready madeCustomAlertView
, sorry i dont use any so i can't recommend..This is just an example you can change anything at will, perhaps you like to add
initWithTitle: message: button:
its up to you. and many other details...Cheers! :)