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

Fix fade-in effect #257

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Fix fade-in effect #257

wants to merge 4 commits into from

Conversation

WenchaoD
Copy link
Contributor

@WenchaoD WenchaoD commented May 14, 2016

Fix fade-in effect.
Somehow when I run the samples in simulators, the fade-in didn't appear. So I made a few changes. It worked for all the 3 sample applications.

@@ -448,6 +448,9 @@ - (void)dzn_reloadEmptyDataSet

DZNEmptyDataSetView *view = self.emptyDataSetView;

// Configure empty dataset fade in display
view.fadeInOnDisplay = [self dzn_shouldFadeIn];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line was moved up a little because in some cases, the method didMoveToSuperview was called before the value fadeInOnDisplay was set up. So I thought it would be better to set it before addSubview.

@dzenbot
Copy link
Owner

dzenbot commented May 18, 2016

Interesting approach. Will have a look soon.

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.

None yet

2 participants