quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

MotionInMotion Episode 14 - Five Advanced RubyMotionQuery Tips

Five Advanced RubyMotionQuery Tips - MotionInMotion

rmqと画像、ラベルのスタイル

  • sample app (Scroll view + Labels)
  • MainController
    • rmq(self.view).append(UIView).tag(:container)
    • rmq(:container).resize_to_fit_subviews
    • rmq(self.view).attr(contentSize:
      • rmq(:container).get.frame.size.height
    • capture_view
      • UIImageWriteToSavedPhotosAlbum
        • rmq.image.from_view(self.view, true)
  • MainStylesheet
    • application_setup
      • color.add_named :advanced_orange, '#ffa200'
    • big_label
      • st.color = color.advanced_orange
    • retheme
      • if st.view.rmq_data.tags[:theme][:type] == :label
        • st.color = color.white
    • repl> rmq(:theme).apply_style(:retheme)
    • row_image
      • rmq.image.resource
      • rmq.image.resource_resizable('row-bg', top: 10, left: 10, bottom: 10, right: 10)
      • UIGraphicsBeginImageContext([280, 50])
      • bg_image.drawInRect([[0,0], [280, 50]])
      • new_image = UIGraphicsGetImageFromCurrentImageContext()
      • UIGraphicsEndImageContext()
      • UIColor.colorWithPatternImage(new_image)