DZNEmptyDataSet icon indicating copy to clipboard operation
DZNEmptyDataSet copied to clipboard

Issue With Vertical Offset

Open dispatchswift opened this issue 7 years ago • 4 comments

I have a navigation controller with a search bar. On initial loading of my table view controller, when the table view has zero rows, the DZNEmptyDataSet view is not properly vertically centered. However, it becomes properly centered after a row is added then deleted.

Any ideas on how to solve this issue?

dispatchswift avatar Sep 19 '18 23:09 dispatchswift

I have a navigation controller with a search bar. On initial loading of my table view controller, when the table view has zero rows, the DZNEmptyDataSet view is not properly vertically centered. However, it becomes properly centered after a row is added then deleted.

Any ideas on how to solve this issue?

I am having the same issue with the search bar in the navigation item, but also when the navigation bar is set to large title as per iOS 11+.

BrettJackson1987 avatar Nov 25 '18 01:11 BrettJackson1987

Seeing the same issue with a navigation controller with a search bar (navigationItem.searchController = searchController).

mengjang avatar Jan 06 '19 04:01 mengjang

Same here, with large title on navigation bar.

francesc-o avatar Jan 11 '19 13:01 francesc-o

Is this framework still being worked on? Last commit was a year ago I believe. I love the swizzling part but I think there are too much issues with offsets/constraints and such. I think it might be a lot easier if you remove the 'title/subtitle/image/etc'. If you simply only use the customview (which devs can then customize in a XIB themselves) it might be easier to maintain and it will be a lot less code. I'll work on this on a fork I think.

BobDG avatar Jan 20 '19 10:01 BobDG