我在 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;