ios app architecture

7
IOS ARCHITECTURE Manjula Jonnalagadda [email protected] @transcendentpi

Upload: manjula-jonnalagadda

Post on 21-Jan-2017

132 views

Category:

Mobile


0 download

TRANSCRIPT

Page 1: iOS App Architecture

IOS ARCHITECTUREManjula Jonnalagadda

[email protected]@transcendentpi

Page 2: iOS App Architecture

Great User Experience begins with Great Engineering!

Page 3: iOS App Architecture

FEATURES OF A GOOD CODE

• Efficient

• Great on battery

• Smooth experience

• Easy to maintain

Page 4: iOS App Architecture

IOS ARCHITECTURE

Page 5: iOS App Architecture

IOS ARCHITECTURE

• Cocoa Touch

• Key frameworks for building apps

• Provide basic infrastructure and support for key technologies

• Media Services

• Support for graphics, audio, video

• Core Services

• Fundamental system services for the app

• Core Foundation and Foundation frameworks

• Support Features such as location, iCloud, Social Media and Networking

• Core OS

• Low-level features on which most other frameworks built upon

• Use them for security and communication with hardware

Page 6: iOS App Architecture

EFFICIENT

• Never hog the main thread. Execute computations on another thread.

• Release resources when you don't need them.

• Use right size images.

• Reuse as much as possible.

• Use location services, bluetooth & radio sparingly.

• Use the highest available API that fits your needs.

• Make objects immutable when possible.

Page 7: iOS App Architecture

CODE ORGANIZATION• It is easy to create spaghetti code.

• If same code repeats, it belongs to a different class

• Keep models clean.

• Use inheritance to create common components.

• Keep View Controllers from getting out of hand.

• Use childViewControllers when UI gets too complex

• Use services for common tasks

• Use categories when View controllers get too long

• Give descriptive names to methods and classes

• Define clear responsibilities for your classes