2013-07-10 6 views

ответ

0

Вы можете попробовать изменить фоновый вид UITableViewCell при нажатии. Этот метод можно получить с помощью мыши.

UITableViewCell *cell=[tableView cellForRowAtIndexPath:indexPath]; 
1

попробовать это,

// получить выбранный Tableview ячейку и выполнить анимацию на ячейку. я использую масштабирование вверх и вниз анимации

#pragma mark Table View Delgate method 
- (void)tableView:(UITableView *)tbView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 
    { 
    CustomTableViewCellForTradeList *cell=(CustomTableViewCellForTradeList *)[tbl_TradeList cellForRowAtIndexPath:indexPath ]; 
    cell.transform = CGAffineTransformMakeScale(0.85,0.85); 
    [self performSelector:@selector(NavigateToTradeBuySellAfterScaling:) withObject:indexPath afterDelay:0.1]; 
} 

// rescale uitableview cell.

-(void)NavigateToTradeBuySellAfterScaling:(NSIndexPath *)indexPath 
{ 
CustomTableViewCellForTradeList *cell=(CustomTableViewCellForTradeList *)[tbl_TradeList cellForRowAtIndexPath:indexPath ]; 
cell.transform = CGAffineTransformMakeScale(1.0,1.0); 
[self performSelector:@selector(NavigateToTradeBuySellAfterScaling1:) withObject:indexPath afterDelay:0.1]; 
} 

// перейти к другому контроллеру

-(void)NavigateToTradeBuySellAfterScaling1:(NSIndexPath *)indexPath 
{ 
TradeBuySellViewController* tradeBuySellController = [[TradeBuySellViewController alloc] initWithNibName:@"TradeBuySellViewController" bundle:nil :entity]; 
[self.navigationController pushViewController:tradeBuySellController animated:YES]; 

} 
Смежные вопросы