D
D
dimib2014-09-23 20:37:14
iOS
dimib, 2014-09-23 20:37:14

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 answer(s)
D
Denis Morozov, 2014-09-23
@dimib

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;or
seld.scrollView.bounces = YES;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question