dzenbot / DZNEmptyDataSet

A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display
https://www.cocoacontrols.com/controls/dznemptydataset
MIT License
12.09k stars 1.73k forks source link

Description doesn't wrap #153

Open jdgong opened 9 years ago

jdgong commented 9 years ago

Have been working for long time trying to figure out this issue: description doesn't wrap and only showing as one truncated line. Someone reported this issue before but it seems v1.7 solved it. So I rolled back to 1.7 and it worked. It seems the newest version breaks some of the autolayout constraints. BTW: I am working with Swift and iOS9.

dzenbot commented 9 years ago

I've seen this too, specially when using a custom view. Is this using the data source methods?

jdgong commented 9 years ago

Yes. Basically used the same as the Application Demo in a collectionView (JSQMessagesViewController actually). Now I am using v1.7 and all is fine. Not sure what changed in latest version.

jonsteinmetz commented 6 years ago

I am still seeing this in the current version. I have found that calling reloadEmptyDataSet() in viewDidLayoutSubviews() after calling super.viewDidLayoutSubviews() seems to avoid the issue for me.