Create a bullet box
Uialertview *alert = [[Uialertview alloc] initwithtitle:@ "title" message:@ "Show Details" Delegate:self cancelbuttontitle:@ "Cancel" otherbuttontitle:@ "OK", nil];
Set the display type of alert (this is when message is nil, enter the message content)
Alert.alertviewstyle = Uialertviewstyleplaintextinput;
Set the contents of the text box input
NSString *text;
[Alert textfiledatindex:0].text = text;
Show Alert Bullet Box
[Alert show];
#pragma Mark-uialertview Proxy method
Clicking on the button above Alertview will call this method
-(void) Alertview: (Uialertview *) Alertview Clickedbuttonatindex: (Nsinteger) Buttonindex
{
if (Buttonindex = = 0)
{
Generally for cancellations
Return
}
if (Buttonindex = = 1)
{
1. Get the content in the text box
NSString *name = [Alertview textfieldatindex:0].text;
}
}
Little Tricks
Alert.tag can be used to pass a value that does not need to define a global variable;
Bullet Frame Alertview