Cell
-
(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { selectedCellIndexPath = indexPath;
withRowAnimation:UITableViewRowAnimationNone];
; }
-
(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { if(selectedCellIndexPath != nil && == NSOrderedSame)
return kTableViewExpandRowHeight;else return kTableViewCollapseRowHeight; }
-
(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { ; }
填星星,demo,AdvancedTableViewCells
-
(void)drawRect:(CGRect)rect { CGPoint ratingImageOrigin = CGPointMake(81.0, 45.0); UIImage *ratingBackgroundImage = ; ;
UIImage *ratingForegroundImage = ;
UIRectClip(CGRectMake(ratingImageOrigin.x, ratingImageOrigin.y, ratingForegroundImage.size.width * (_cell.rating / MAX_RATING), ratingForegroundImage.size.height));
; }
-
(void)_commonInit { backgroundImageView = initWithImage:]; backgroundImageView.contentMode = UIViewContentModeLeft; ;
foregroundImageView = initWithImage:]; foregroundImageView.contentMode = UIViewContentModeLeft; foregroundImageView.clipsToBounds = YES; ; }
UITableView *tab;
BOOL animations = ; ; ; ; ;