Interface builder 'Bounces Vertically' checkbox doesn't affect runtime value

Originator:keithbsmiley
Number:rdar://22959792 Date Originated:02-Oct-2015 05:09 PM
Status:Resolved Resolved:Xcode 8
Product:Developer Tools Product Version:Xcode 7.0
Classification:Other Bug Reproducible:Always
 
Summary:

If you uncheck 'Bounces Vertically' in Interface builder on a UITableView, the value of alwaysBounceVertical is still true at runtime.

Steps to Reproduce:

1. In Interface builder, drag out a UITableView, create a class for the view controller
2. Uncheck 'Bounces Vertically' (checked by default)
3. Add a breakpoint inside the viewDidAppear method of the view controller
4. Run the app
5. When it pauses at the breakpoint run `po self.tableView.alwaysBounceVertical

Expected Results:

This property should return false

Actual Results:

This property returns true

Notes:

- You can work around this by setting false to alwaysBounceVertical in the user defined runtime attributes of the table view.
- This issue on StackOverflow https://stackoverflow.com/questions/13409976/why-can-i-not-set-uitableview-alwaysbouncevertical-with-ib

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!