Note that there are some explanatory texts on larger screens.

plurals
  1. POpopOver table view
    text
    copied!<p>In my project , On clicking the button the string present in the button Action method should store in popover table view cell.</p> <p>I cam able to store a single sting , to the first cell ....</p> <p>And now my problem is i had Four buttons each button action consists of 4 strings , and now the should at a time to the popover table view ,,,</p> <pre><code> #import "SecondDetailViewController.h" -(IBAction)viewButtonPressed:(id)sender { [super viewDidUnload]; //create the view controller from nib self.tablePopoverController = [[[TablePopoverController alloc] initWithNibName:@"TablePopover" bundle:[NSBundle mainBundle]] autorelease]; ////------------------------------- myArray = [[NSMutableArray alloc] initinitWithObjects:myString,myString2,myString3,myString4,myString5,myString6,nil]; tablePopoverController.getingOrder = myArray ; NSLog(@"table popo %@",myArray); tablePopoverController.contentSizeForViewInPopover = CGSizeMake(250, 250); //create a popover controller self.popoverController = [[[UIPopoverController alloc] initWithContentViewController:tablePopoverController] autorelease]; //present the popover view non-modal with a //refrence to the button pressed within the current view [popoverController presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; } -(IBAction)orderButtonPressed { myString = staterlable1.text; [myArray addObject:myString]; NSLog(@"myArray%@",myString); } -(IBAction)orderButton2Pressed { myString2 = staterlable2.text; NSLog(@"myArray%@",myString2); [myArray addObject:myString2]; } -(IBAction)orderButton3Pressed { myString3 = staterlable3.text; [myArray addObject:myString3]; NSLog(@"myArray%@",myString3); } -(IBAction)orderButton4Pressed { myString4 = staterlable4.text; [myArray addObject:myString4]; NSLog(@"myArray%@",myString4); } -(IBAction)orderButton5Pressed { myString5 = staterlable5.text; [myArray addObject:myString5]; NSLog(@"myArray%@",myString5); } -(IBAction)orderButton6Pressed { myString6 = staterlable6.text; [myArray addObject:myString6]; NSLog(@"myArray%@",myString6); </code></pre> <p>my Problem Is after clicking these buttons the myString1 - to - myString6 NSString objects Should Store into NSMutableArray so That i will display all the strings in the TableViewPopOverController which will popover when clicking the another button in the second detailViewController........</p> <p>thanks in Advance......</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload