quattro_4 scribble

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

MotionInMotion Episode 11 - RMQ

RMQ - MotionInMotion

RMQを使ってスタイルの設定

  • infinitered RubyMotionQuery - RMQ | InfiniteRed
    • 6 minute intro on why RMQ is so cool
    • 36 Minute video creating an Image Browser app
  • command line
  • gem 'ruby_motion_query'
  • controller
    • rmq.stylesheet = HelloStylesheet
    • rmq(self.view).apply_style :root_view
    • rmq.append HelloView, :hello_view
  • app/stylesheets
    • class HelloStylesheet < RubyMotionQuery::Stylesheet
      • def hello_view(st)
        • st.frame = :full
    • background_color = color.white
    • text, text_alignment, font
  • stylers
    • module RubyMotionQuery
      • module Stylers
        • class UIViewStyler
    • corner_radius
      • def corner_radius=(value)
        • @view.layer.cornerRadius = value
  • repl
    • インタラクティブにスタイルの設定ができる
    • rmq.log :tree
    • rmq(UIButton).tag(:hello_button)
    • rmq(:hello_button).style do |st|
    • move
      • rmq(:hello_label,:hello_button).nudge down: 30
      • .nudge u: 10
  • jquery like
    • rmq.append(UIButton, :hello_button).on(:tap) do |sender|
    • rmq(:hello_label).animate
      • duration, animations, completion

動画はクラッシュするところを編集しないのも良いと思った。直す過程が分かる。