2012-07-23 85 views
0

我創造了iPhone應用程序的下拉列表中,我有地方上的某次點擊的tableview頂部的按鈕可以打開或獸皮,但它並沒有顯示錶查看TableView中沒有顯示在按一下按鈕在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; 
+0

tblSimpleTable.hidden = YES; ...隱藏=否。你隱藏桌子。 – 2012-07-23 05:11:25

+0

是的,當按鈕被點擊時,它顯示錶 – user1520252 2012-07-23 05:12:10

+0

@Chinttu你能幫我一下,請問爲什麼這不顯示錶 – user1520252 2012-07-23 05:17:27

回答

相關問題