Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

update UICollectionView's header content without reloading whole section [closed]

i want to dynamically update the content of the header information in my UIColectionView but i do not want to reload the whole section because this i done very frequently.

Any ideas for an elegant solution?

Thanks

like image 491
user3173911 Avatar asked Jan 09 '14 12:01

user3173911


1 Answers

You can call setNeedsDisplay on the UIView (your header view) rather than reloadData or reloadSections: on the UIColectionView.

like image 114
Greg Avatar answered Nov 04 '22 20:11

Greg