---
title: "Cell "
author: "xserver"
date: "2013-05-16T14:32:22Z"
tags: []
categories: ["编程语言"]
slug: "cell"
draft: false
lastmod: "2013-05-17T19:04:00Z"
id: 1870345
url: "https://xserver.iteye.com/blog/1870345"
---

- (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 = ;
    ;
    ;
    ;
    ;