Setting Bounce Horizontal/Vertical on Scroll View in IB has no effect
| Originator: | pburleson | ||
| Number: | rdar://10986946 | Date Originated: | 05-Mar-2012 03:15 PM |
| Status: | Open | Resolved: | |
| Product: | Dev Tools | Product Version: | 4.3 (4E109) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: Checking "Bounce Horizontally" and "Bounce Vertically" on a scroll view in Interface Builder has no effect when the application is actually run. While the values for alwaysBounceHorizontally and alwaysBounceVertically are set to YES at runtime, the bouncing behavior doesn't actually occur. It can be made to occur by setting these values to YES in code. A sample project is attached that demonstrates this. It prints the value of the two properties to the console. As provided, the manual setting of the properties is commented out. Run in this state, the blue view that is the content of the scroll view will not bounce. Uncomment out the lines and re-run and the blue view will bounce revealing the red background scroll view. During both runs, all print outs of the values of the properties will report YES. Steps to Reproduce: 1. Create new Project (I chose Single View for iPad, ARC enabled) 2. Add scroll view 3. In the attributes inspector check Bounce Horizontally and Bounce Vertically 4. Add a content view 5. Run app and try to move the content view around Expected Results: Normal scroll view bouncing behavior Actual Results: No scroll view bouncing behavior Regression: Unknown. Notes: None
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!
Sample Project
The sample project can be found here: http://cl.ly/2n3I1A16412P0k0R0x3V