Kumarin
Kumarin

Reputation: 21

configure UItableView not to scroll on iPhone

How do I set uitableView not to scroll So that it is fixed with two rows

Upvotes: 2

Views: 833

Answers (2)

shannoga
shannoga

Reputation: 19869

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

Upvotes: 4

futureelite7
futureelite7

Reputation: 11502

use this code:

tableView.scrollEnabled = NO;

Upvotes: 2

Related Questions