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

fix to subscribe UIDeviceOrientationDidChange notification after label setup #52

Merged

Conversation

t-yoshii
Copy link

Moved UIDeviceOrientationDidChange subscription from 'Drop.init()' to end of 'Drop.setup()'.

Because the updateHeight() called from deviceOrientationDidChange(_:) handler can access uninitialized statusLabel when setup() has not been completed yet.

#51

…l setup has been completed to avoid access uninitialized statusLabel

issue#51
@morizotter
Copy link
Owner

Thanks!!
I'll check it later!

@morizotter morizotter merged commit 93a69a2 into morizotter:master Jan 30, 2017
@t-yoshii
Copy link
Author

Thank you very much for your quick check!
I love SwiftyDrop :)

@morizotter
Copy link
Owner

😊👍

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