Your SlideShare is downloading. ×
Objective c design pattens-architetcure
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Objective c design pattens-architetcure

1,031
views

Published on

Basic Information

Basic Information

Published in: Education

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,031
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
94
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. iOS development basic knowledge戴谷州 KEN_TAI@UUU.COM.TW
  • 2. AGENDA MVC Delegation Target-Action UIApplication Archtecture UIViewController Catelog UIView Archtecture
  • 3. MVC Model View Controller
  • 4. MVC Model  Data class/ Entity  Data Access/Business logic View  Display component Controller  View behavior definition  View arrangement
  • 5. UIKIT ARCHTECTURE Model view UIView UIViewController
  • 6. UIKIT ARCHTECTURE Model  Custom UIView  Subclass of UIView  .xib / .storyboard UIViewController  View behavior definition  View arrangement (Hard coding)
  • 7. DELEGATION delegate Component Behavior Component’s behavior is defined in another pre-defined class. Must keep relationship between component and behavior with field relation.
  • 8. UIKIT DELEGATE delegate UITextField UITextFieldDelegate delegate UITableViewDelegat UITableView e dataSource UITableView DataSource
  • 9. TARGET-ACTION Target Component CustomClass Action CustomMethod Component’s behavior is defined in custom method in custom class. Must keep relationship between component and behavior with add target and action.
  • 10. UIKIT TARGET-ACTION Target UIButton self Action clickHandler:
  • 11. UIAPPLICATION ARCHTECTURE UIApplicatio UIViewController n rootViewControll er view addSubVie w UIApplicationDelegate UIWindow UIView
  • 12. UIVIEWCONTROLLER CATALOG Container  UINavigationController  UITabBarController  UISplitViewController(iPad)  UIPopoverController(iPad)  UIPageViewController Build-In  UITableViewController  UIMenuController  UIImagePickerController Custom  Subclass of UIViewController ModalViewController  Switch UIViewController
  • 13. UIVIEW ARCHTECTURE All subclasses of UIView
  • 14. UIAPPLICATION INTERACTS WITH … Http UIKit Other Services Communication Camera GPS Heading File I/O Media Accelerometer Localization [ [UIApplication shareApploication] openURL] Other App