Instantly share code, notes, and snippets.

Embed
What would you like to do?
[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