Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

uicollectionview

UICollectionView assertion error on stale data

March 25, 2023 by Tarik

I run in the same problem. Code runs under 6.1 and crashes under 7.0 I solved the issue the following way: In the function -(NSInteger) numberOfSectionsInCollectionView:(UICollectionView *)collectionView I call [myCollectionView.collectionViewLayout invalidateLayout]; That´s all.

Categories uicollectionview Tags ios7, uicollectionview Leave a comment

the behavior of the UICollectionViewFlowLayout is not defined, because the cell width is greater than collectionView width

January 27, 2023 by Tarik

select collectionview in storyboard go to size inspector change estimate size to none

Categories uicollectionview Tags ios9, uicollectionview, uicollectionviewcell, uicollectionviewlayout, xcode7-beta5 Leave a comment

How do I know that the UICollectionView has been loaded completely?

December 29, 2022 by Tarik

This worked for me: [self.collectionView reloadData]; [self.collectionView performBatchUpdates:^{} completion:^(BOOL finished) { /// collection-view finished reload }]; Swift 4 syntax: collectionView.reloadData() collectionView.performBatchUpdates(nil, completion: { (result) in // ready })

Categories uicollectionview Tags delegates, reload, uicollectionview Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa