¡@

Home 

2014/10/15 ¤U¤È 10:14:46

iphone Programming Glossary: taskcategories

How to make a exclusive UITableView list for checkmarks?

http://stackoverflow.com/questions/5589316/how-to-make-a-exclusive-uitableview-list-for-checkmarks

NSIndexPath indexPath tableView deselectRowAtIndexPath indexPath animated NO NSInteger catIndex taskCategories indexOfObject self.currentCategory if catIndex indexPath.row return NSIndexPath oldIndexPath NSIndexPath indexPathForRow.. UITableViewCellAccessoryNone newCell.accessoryType UITableViewCellAccessoryCheckmark self.currentCategory taskCategories objectAtIndex indexPath.row UITableViewCell oldCell tableView cellForRowAtIndexPath oldIndexPath if oldCell.accessoryType.. variables @interface myClass MyCustomCategoryClass currentCategory pointer to the currently checked item NSArray taskCategories pointer to an array of your list items ... other instance variables here ... other @property declarations here or in your..