elp
elp

Reputation: 8131

Use a very long UIView


is there a simple way to scroll an UIView?

I want to do a registration form, but there are a lot of fields and i prefer to scroll uiview (with touch) vertically.

How can i do it?

thanks,
alberto.

Upvotes: 0

Views: 304

Answers (3)

Meeya
Meeya

Reputation: 53

Yes, you can set the height and width of the UIScrollView as per your requirement.

scroll.contentSize = CGSizeMake(0,0,320, 500);

Upvotes: 0

Alex Reynolds
Alex Reynolds

Reputation: 96927

Put your fields into a UITableView, which resizes and scrolls for you. A table view is a more standard approach to setting up forms on iOS — it will be more familiar to end users.

Upvotes: 2

icant
icant

Reputation: 888

There is an UIScrollView object you can use.

Upvotes: 0

Related Questions