Collection Views Breaking
Collection Views Breaking
- Subject: Collection Views Breaking
- From: Luther Baker <email@hidden>
- Date: Tue, 19 May 2015 23:46:28 -0500
I've got a simple iOS project consisting of 2 collection view controllers
and a navigation controller.
Tapping any item in the first collection view simply pushes the second
collection view on the stack.
Problem is, when I tap "< Back" and then manually scroll up ... the app
crashes with a EXC_BAD_ACCESS error in main.
Nothing is logged ... and the stack in the thread looks something like
0 objc_msgSend
16 UIApplicationMain
17 main
18 start
19 start
with 17 main highlighted.
/////
In the code, FirstViewController and SecondViewController are almost
identical save for one line. I am specifically looking at what line 24 in
SecondViewController does to the push transition.
self.useLayoutToLayoutNavigationTransitions = YES;
Upon running, the collection view "push" animation looks fine - and the "<
Back" button actually works ... but once I get back to FirstViewController,
the original colors never come back. In addition, when I scroll up, I get
the error listed above.
I've thrown together a small project to demonstrate:
https://github.com/LutherBaker/CollectionViewDemo
Thoughts? It feels like I'm not referencing something I should be ...
Thanks,
-Luther
PS: I think you may ignore this but note that when you initially select an
item in the FirstViewController and "push" - the console spits lots and
lots of
*Snapshotting a view that has not been rendered results in an empty
snapshot. Ensure your view has been rendered at least once before
snapshotting or snapshot after screen updates.*
which I assume is simply a bug or non-relevant logging accidentally left in
the framework.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden