Issues using NSIndexPath as key in NSMutableDictionary?
问题 Is there any particular reason why attempting to store and retrieve a value in an NSMutableDictionary using an NSIndexPath as a key might fail? I originally attempted to do this in order to store an NSMutableDictionary of UITableViewCell heights ( self.cellHeights ) for a UITableView . Each time you tapped a UITableViewCell , that cell would either expand or contract between two different heights based on the value stored in the NSMutableDictionary for that particular indexPath : - (CGFloat