rubymotion - Simplest way to set a background image on a ProMotion screen? -


i want set background image on screen placeholder. quickest, easiest, simplest way that? i've tried not seem work.

i should mention in redpotion have access rmq.

i in redpotion rubytrivia app. set root_view style given redpotion stylesheet. in case i'm setting background image image resource.

# in rmq stylesheet def root_view(st)   st.background_image = image.resource('retina_wood') end  # in promotion screen def on_load   find(view).style {|st| st.background_image = image.resource('retina_wood') } end 

note the rmq implementation of background_image= sets background tiling (repeating) background image. if want fill screen, want use different approach differently on different sized screens. rubytrivia app open source, please enjoy! https://github.com/iconoclastlabs/rubytrivia


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -