Can't set contentOffset of collection view on viewWillAppear with extended status bar

Originator:jpmfagundes
Number:rdar://23755495 Date Originated:12/04/2015
Status:Open Resolved:
Product:iOS SDK Product Version:9.1 [13B143]
Classification:Other bug Reproducible:Always
 
Summary:
When presenting a collection view controller modally or pushed to a navigation controller with the extended status bar (e.g. in call, personal hotspot on etc), you can't set the collection view's contentOffset in viewWillAppear, only in viewDidAppear. With the regular status bar, setting the contentOffset in viewWillAppear works.
This happens both with vertical and horizontal layouts.

Steps to Reproduce:
- Create a collection view controller, and populate it with some cells (enough to enable scrolling)
- On the collection view controller, set the contentOffset of the collection view to a value beyond (0, 0) (depending on the layout scroll direction) in viewWillAppear
- Present this collection view controller modally or pushed to a navigation controller, with an extended status bar. You will notice that contentOffset has no effect.
- Test again with the regular status bar: it works as expected.

Expected Results:
Content offset of collectionView set on viewWillAppear should be set even with the extended status bar

Actual Results:
Content offset of collectionView set on viewWillAppear is not set on the collectionView with the extended status bar

Version:
9.1 [13B143]

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!