Reputation: 8131
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
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
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