0

I'm try to reset frame's height after zoom, but tableview setFrame does not working. How to reset UITableView's height?

My Code as follows:

CGRect rectFrame = self.frame;
CGAffineTransform affineMatrix = CGAffineTransformMakeScale(0.5, 0.5);
affineMatrix = CGAffineTransformTranslate(affineMatrix, appSize.width, 120);
self.transform = affineMatrix;
[self setFrame:CGRectMake(rectFrame.origin.x, rectFrame.origin.y, rectFrame.size.width, 900)];

self is UITableview.

blueart
  • 33
  • 3

1 Answers1

0

Try this code:

[UIView animateWithDuration:0.2 animations:^{
                  self.tableView.frame = rectFrame;
                  self.tableView.transform = CGAffineTransformMakeScale(1.0,1.0);
}];
gabbler
  • 13,626
  • 4
  • 32
  • 44
  • Thanks CarouselMin, I have solved the problem from this: http://stackoverflow.com/questions/14223931/change-uitableview-height-dynamically – blueart Sep 12 '14 at 14:47
  • You are welcome, thanks for letting me know the link,I'll look into that and try to change the height of tableview. – gabbler Sep 12 '14 at 15:31