0

I have created a tableView and changed it transform and frame properties mostly because i want it work much like a scrollView(with lazy loading).

        UITableView *tempTableView = [[UITableView alloc] init];

        //Rotating it 90`
        tempTableView.transform = CGAffineTransformMakeRotation(-1.5707);
        tempTableView.frame = CGRectMake(0, 30, 768, 79);

A little later in the application i need to change the size of the tableView this seems to fail(the tableViews contents are no more visible although the table view itself is) wether i try to edit the tables 'frame' or 'bounds' properties

4

1 回答 1

0

在您的代码中使用 addSubview 方法。

tempTableView.transform = CGAffineTransformMakeRotation(-1.5707);
tempTableView.frame = CGRectMake(0, 30, 768, 79);
 //tempTableView.frame =  CGRectMake(0, 0, 320, 480);
[self.view addSubview:tempTableView];
于 2012-04-24T13:52:34.603 回答