Answer the question
In order to leave comments, you need to log in
How can a UIViewController allow vertical movement?
Good day.
If we consider the TableViewController, then there it is called something like bounce, and on / off is possible in IB.
What should be written to assign such behavior to ViewController-y?
Thank you.
Answer the question
In order to leave comments, you need to log in
1. If you want for a normal ViewController, then only this way: you need to place all the content on the ScrollView in order to get such behavior. TableViewController by default has a view of the TableView class (TableView is an inheritor of ScrollView)
2. If you mean how to do it from the code, then something like this: seld.tableView.bounces = YES;
orseld.scrollView.bounces = YES;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question