Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

arnieterm

macrumors regular
Original poster
Aug 28, 2008
201
0
I want to hide a custom table view cell in an iphone application. using cell.hidden=YES; does not work. Is it really not possible to hide the cell or does there exists any alternative for hiding the cell.
Thanks
Arnieterm
 

detz

macrumors 65816
Jun 29, 2007
1,051
0
Explain what you're trying to do, why do you need to hide a cell?
 

arnieterm

macrumors regular
Original poster
Aug 28, 2008
201
0
Getting an array which is bind to the data source of UITableView. There is a column named priority with an integer values of 1,2,3 etc. I need to show cells with priority values of 1 only and need to hide the others. Though an alternative is to cretae another sub array that only contains priorities with value 1. I want to avoid extra sub array so looking for hiding the cells instead

Thanks
Arnieterm
 

dejo

Moderator emeritus
Sep 2, 2004
15,982
452
The Centennial State
I think you need to put logic into numberOfRowsInSection: and cellForRowAtIndexPath: to only populate the cell for priority 1 items then.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.