Created
July 9, 2016 10:17
-
-
Save sobstel/7f9dbc4a91c0d78795a92853e89c2ee7 to your computer and use it in GitHub Desktop.
[RubyMotion] blurred background view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BlurredBackgroundView < UIVisualEffectView | |
def rmq_build | |
blur_effect = UIBlurEffect.effectWithStyle(UIBlurEffectStyleDark) | |
self.effect = blur_effect | |
self.frame = UIScreen.mainScreen.bounds | |
end | |
end | |
# rmq | |
#class HomeScreenStylesheet < ApplicationStylesheet | |
# def root_view(st) | |
# st.background_image = image.resource('bg.jpg') | |
# end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment