How to add UITableView inside UIAlertView in iPhone?

I want to add UITableViewwarnings inside the view.

I tried to add a table view as an auxiliary representation of the warning view, this does not work. Can you give me a code or sample link for this?

How can i do this?

+6
source share
5 answers

Works in my case

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"title" message:@"click for submission \n\n\n\n "delegate:self  cancelButtonTitle:@"click for submission"
otherButtonTitles:nil];

    table = [[UITableView alloc]initWithFrame:CGRectMake(10, 40, 264, 120)];
    table.delegate = self;
    table.dataSource = self;
    [alert addSubview:table];

    [alert show];

    [table release];

    [alert release];        
+5
source

, ?

. . , :

  • . .
  • UISegmentedControl, , , WiFi.
  • UIPopoverController, iPad.
  • , UISwitch.
+2

UIAlertView + UITableView UIActionSheet.

+2

you can use CAAlertView " https://github.com/chandanankush/CAAlertView " for a list of tableView and datePicker

0
source

All Articles