0

我在 iphone 应用程序中创建下拉列表我已将按钮放在单击 tableview 打开和隐藏但它不显示 table view 的顶部

我已按照以下链接的教程进行操作

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;
4

1 回答 1

0

查看此代码:NSNestedTable

于 2012-07-23T05:30:23.143 回答