English 中文(简体)
人口表
原标题:popOver table view

在我的项目中,在点击 but子时,在纽伦行动方法中的位置应当存放在人口桌上。

I cam 能够向第一个囚室储存一只 s。

现在,我的问题是,每纽特州有4个县,由4个县组成,现在该县应该达到人口比例。

  #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);

我的问题 在点击了这些 but子之后——我String6NSString物体应当存放到SuntableArray。 这将显示表GViewPopOverController的所有座右铭,该座座右铭将在第二版的Controller号中点击另一顿时pop。

页: 1

最佳回答

这样做的通常方式是把表PopoverController放在一架UINavigationController。 然后,在表PopoverController处理表时 观点:表 观点 进入美国航空局的看法 主计长。

例如,你可以(以你为榜样)建立主计长结构:

  //create a popover controller
  self.popoverController = [[[UIPopoverController alloc]  initWithContentViewController:[[[UINavigationController alloc] initWithRootViewController:initWithContentViewController:tablePopoverController] autorelease]] autorelease];

这与你流行的生殖器法相似,在烟雾下添加了一架UINavigation Controller。 现在,见表Popover 主计长应处理按惯例与航空通信总库进行浏览选择

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    DetaiViewController *detail = [[DetaiViewController alloc] init];
    /* Configure detail using indexpath here indexPath
    ...
    */
    [self.navigationController pushViewController:detail animated:YES];
}

这将按预期(通过把新观点推向美国航空测量局主计长)开展工作,因为我们与一架美国航空测量员建立了控制机构。

问题回答

暂无回答




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签