Skip to content

Instantly share code, notes, and snippets.

@sobstel
Created July 9, 2016 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sobstel/7f9dbc4a91c0d78795a92853e89c2ee7 to your computer and use it in GitHub Desktop.
Save sobstel/7f9dbc4a91c0d78795a92853e89c2ee7 to your computer and use it in GitHub Desktop.
[RubyMotion] blurred background view
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