Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Pixels Everywhere!

Pixels Everywhere!

Avatar for Vladimir Pouzanov

Vladimir Pouzanov

June 01, 2013
Tweet

More Decks by Vladimir Pouzanov

Other Decks in Technology

Transcript

  1. ARC

  2. ARC

  3. class  HomeScreen  <  ProMotion::Screen    title  "Home"    def  on_load

           #  Load  data    end    def  will_appear        #  Set  up  the  elements  in  your  view  with  add        @label  ||=  add  UILabel.alloc.initWithFrame([                5,  5,  20,  20        ])    end    def  on_appear        #  Everything's  loaded  and  visible    end end
  4. class  HomeScreen  <  ProMotion::Screen    title  "Home"    def  on_load

           #  Load  data    end    def  will_appear        #  Set  up  the  elements  in  your  view  with  add        @label  ||=  add  UILabel.alloc.initWithFrame([                5,  5,  20,  20        ])    end    def  on_appear        #  Everything's  loaded  and  visible    end end
  5. class  HomeScreen  <  ProMotion::Screen    title  "Home"    def  on_load

           #  Load  data    end    def  will_appear        #  Set  up  the  elements  in  your  view  with  add        @label  ||=  add  UILabel.alloc.initWithFrame([                5,  5,  20,  20        ])    end    def  on_appear        #  Everything's  loaded  and  visible    end end
  6. def  on_load(app,  options)    @home          =

     MyHomeScreen.new(nav_bar:  true)    @settings  =  SettingsScreen.new    @contact    =  ContactScreen.new(nav_bar:  true)    open_tab_bar  @home,  @settings,  @contact end
  7. def  on_load(app,  options)    @home          =

     MyHomeScreen.new(nav_bar:  true)    @settings  =  SettingsScreen.new    @contact    =  ContactScreen.new(nav_bar:  true)    open_tab_bar  @home,  @settings,  @contact end
  8. def  on_load(app,  options)    @home          =

     MyHomeScreen.new(nav_bar:  true)    @settings  =  SettingsScreen.new    @contact    =  ContactScreen.new(nav_bar:  true)    open_tab_bar  @home,  @settings,  @contact end
  9. {    title:  "Email",    key:  :email,    placeholder:  “[email protected]",

       type:  :email,    auto_correction:  :no,    auto_capitalization:  :none }
  10. @form.render =>  {    email:  "[email protected]",    password:  "password",  

     confirm:  "password",    remember:  true,    account_type:  :pro }
  11. CSS

  12. #button1,  #button2,  #button3  {    border-­‐radius      :  5px;

       font-­‐family          :  "Helvetica";    font-­‐size              :  13px;    font-­‐weight          :  bold;    color                      :  #ffffff;    background-­‐color:  linear-­‐gradient(#3c4145,  #585e62);    border-­‐width        :  1px;    border-­‐color        :  #212325;    box-­‐shadow            :  inset  0  1px  0  rgba(255,255,255,0.3),                                                    0  1px  1px  rgba(0,0,0,0.5); } #button2  {    box-­‐shadow            :  inset  0  2px  5px  rgba(0,0,0,0.6),                                                    0  1px  0  rgba(255,255,255,0.1); }