Recording only once for an inappropriate UICollectionViewFlowLayout cascade

I created an application in which I used JSQMessageViewControllerand it works fine in iOS 8. I used Swift in this project and I am connecting as the library is written in Objective-C. But after exiting iOS 9, Xcode 7, and Swift 2, I converted my code syntax to Swift 2 and there were problems. The application was not broken, but there is a log error ... See below.

2015-09-23 14:45:08.867 COC REAL WAR[1201:546997] Logging only once for UICollectionViewFlowLayout cache mismatched frame  
2015-09-23 14:45:08.868 COC REAL WAR[1201:546997] UICollectionViewFlowLayout has cached frame mismatch for index path <NSIndexPath: 0xc000000000a00016> {length = 2, path = 0 - 5} - cached value: {{4, 693.221}, {312, 97}}; expected value: {{4, 596}, {312, 97}}  
2015-09-23 14:45:08.868 COC REAL WAR[1201:546997] This is likely occurring because the flow layout subclass JSQMessagesCollectionViewFlowLayout is modifying attributes returned by UICollectionViewFlowLayout without copying them

The answers are much appreciated.

+4
source share
1 answer

, , . springinessEnabled false.

collectionView!.collectionViewLayout.springinessEnabled = false

+3

Source: https://habr.com/ru/post/1608626/


All Articles