Closed wangyutao0424 closed 6 years ago
@wangyutao0424 I don't think this is an issue with Texture. In our testing we found that calling imageNamed: off the main thread isn't safe, however, calling imageNamed:inBundle:compatibleWithTraitCollection:
is.
Why not try using as_imageNamed:
or as_imageNamed:compatibleWithTraitCollection:
and seeing if that fixes the issue.
@garrettmoon Hi,I have same issue on iOS8. So saaaaad, imageNamed:inBundle:compatibleWithTraitCollection: , In iOS 9 and later, this method is thread safe. Is there any idea to fix it on iOS8?
@PatrickChow Have you tried using the above methods I suggested?
@garrettmoon Yes,as_imageNamed will be crash on iOS 8.1 sometimes. I using collectionNode:nodeForItemAtIndexPath instead of collectionNode:nodeBlockForItemAtIndexPath to make sure initial node at main thread.