34

iOS Eye for the Rails Guy

Embed Size (px)

Citation preview

A little on language

Ye Olde Railsgolden path

iPhonegolden path

iPadgolden path

Rails 3 generated code

➜ rails g scaffold blog

blogs_controller: 83 lines

migration: 12 lines

model: 2 lines

iPad generated code:Split View-based app

RootViewController.m: 317 lines

DetailViewController.m: 160 lines

2 HUGE .xib (XML) files: DON’T ASK

Boogeymen

Testing

It REALLY SUCKS

on iOS!!!!

Libraries you should look at

• TouchXML

• TouchJSON

• ASIHTTPRequest

• Facebook three20

Advice

• Always lead your inline strings with a @

•Do read about UIView

• Do not use Interface Builder

•NSLog is your friend