简体   繁体   中英

iOS:When I setFrame to tableView for change the height,it did not work

这张照片是我的问题


It did not work.

[self.tableView setFrame:CGRectMake(0, 0, 320, 600)];

I set the frame for a highter height,but id does not work.

try this

  - (void) viewDidLayoutSubviews
   {
        [self.tableView setFrame:CGRectMake(0, 0, 320, 600)];
   }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM