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