开发者

configure UItableView not to scroll on iPhone

开发者 https://www.devze.com 2023-02-14 04:39 出处:网络
How do I setuitableView not to scroll So th开发者_高级运维at it is fixed with two rowsUse: tableView.scrollEnabled = NO;

How do I set uitableView not to scroll So th开发者_高级运维at it is fixed with two rows


Use:

  tableView.scrollEnabled = NO;

if you wish to fix the size you sould set the frame to be for 2 row's size:

tableView.frame = CGRectMake(x_position,y_position,width,height);

good luck


use this code:

tableView.scrollEnabled = NO;
0

精彩评论

暂无评论...
验证码 换一张
取 消