Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

Conversation

@bartvandendriessche
Copy link
Contributor

This commit introduces a indexForEmptyDataSetView method to encapsulate the logic that figures out where to insert the DZNEmptyDataSetView in the UIScrollView subviews hierarchy.

Figuring out the proper index is moderately complex because it needs some decision making based on the UIScrollViews actual class and the current iOS version.

This is a fix for #47

This commit introduces a `indexForEmptyDataSetView` method to
encapsulate the logic that figures out where to insert the
`DZNEmptyDataSetView` in the `UIScrollView` subviews hierarchy.

Figuring out the proper index is moderately complex because it needs
some decision making based on the `UIScrollView`s actual class and the
current iOS version.
@dzenbot
Copy link
Owner

dzenbot commented Apr 12, 2015

Thanks for this, and sorry for such a late reply. This PR is now unable to merge automatically, and I wasn't very sure about it either. I wonder if there is a simpler approach for this.

@dzenbot dzenbot closed this Apr 12, 2015
@bartvandendriessche
Copy link
Contributor Author

New fix suggested in #126

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants