在iphone应用程序中单击按钮时,TableView未显示

时间:2012-07-23 05:06:54

标签: iphone ios xcode

我正在iphone应用程序中创建下拉列表我已将按钮置于该点击桌面视图的顶部打开并隐藏但它不显示表格视图

我已按照以下链接

进行了教程

http://iphone-rahulvarma.blogspot.com/2011/06/customized-drop-down-list-in-iphone.html

    IBOutlet UITableView *tblSimpleTable;
IBOutlet UIButton *btn;
IBOutlet UIImageView *i;
BOOL flag;
NSArray *arryData;


   }
   @property(nonatomic,retain)IBOutlet UIButton *btn;
   @property(nonatomic,retain)IBOutlet UITableView *tblSimpleTable;
   @property(nonatomic,retain)IBOutlet UIImageView *i;
   @property(nonatomic,retain)NSArray *arryData;

  -(IBAction)btnClicked;





      arryData = [[NSArray alloc] initWithObjects:@"",@"iPhone",@"iPod",@"MacBook",@"MacBook Pro",nil];
flag=1;
tblSimpleTable.hidden=YES;
btn.layer.cornerRadius=8;
tblSimpleTable.layer.cornerRadius=8;

1 个答案:

答案 0 :(得分:0)

查看此代码:NSNestedTable