SlideShare a Scribd company logo
Final Revision
    IOS Track
  by Mohamed Amin
Agenda
 Main Components
 Covered during the
 Course                   UIImageView
 UINavigationController   MKMapView
 UITableView              UIAlertView
 UITabBar                 Working With
                          UserDefaults and Plists
 UIWebView

 UITextView
Maps
         Navigation


                                             List
                                            table

                      ImageView




                                         Grouped
TabBar                    TextView
UINavigationController
          How to use it ?
   Define a property of UINavigation Controller

   Synthesize your property

  Add this component to your Window As Subview

  Drag and Drop your Component in Interface Builder

  Connect your property to this Component                No More !
  Define your RootView xib and Class if you don`t have
  one , Start to make a new View and make it as a root
UINavigationController
     Important Methods ?

  [PushViewController:(UIViewController) animated:(animated)];

  [navigation PopViewController];

  [navigation Pop toViewController:];
UINavigationController
     Test Example ?
UITableView
                                           How to use it ?                              List
                                                                                       table
 Create New View Controller with TableView Type

 Define your Data Source (Arrays or Dictionary or Something else)

 Define Table layout number of Sections and rows                                      Grouped
                                                                                       table
 implement Delegate methods you will need like CellForRow , didSelectRowAtIndexPath
 and More




                                 No More !
UITableView
      Important Methods ?
  [myTable reloadData]

  [myTable reloadRowsAtIndexPaths: withRowAnimation:]
UITableView
      Important Delegate Methods ?
  didSelectRowAtIndexPath:(NSIndexPath *)indexPath

  numberOfRowsInSection:(NSInteger)section{

  -(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{

  cellForRowAtIndexPath:(NSIndexPath *)indexPath
UITableView
     Test Example ?
UITabBarView
                               How to use it ?
 Define a property of UITabBarController

  Synthesize your property

 Add this component to your Window As Subview

 Drag and Drop your Component in Interface Builder

 Connect your property to this Component

  Define your First View and Second View xib and Class if
  you don`t have one , Start to make Views !!
                                                            No More !
UITabBarView
    Test Example ?
UIWebView
                                How to use it ?
Define a property of UIWebView

 Synthesize your property

Drag and Drop your Component in your View in Interface Builder

Connect your property to this Component

Start to use it !!                                               No More !
UIWebView
    Important Delegate Methods ?
  (void)webViewDidFinishLoad:(UIWebView *)webView

  (void)webViewDidStartLoad:(UIWebView *)webView

  - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest
  *)request



                                                                        No More !
UIWebView
    Important Methods ?

  [self.webView loadRequest]

  [self.webView loadHTMLString]
UIWebView
    Test Example ?
UITextView
                                   How to use it ?
 Define a property of UITextView

 Synthesize your property

Drag and Drop your Component in your View in Interface Builder

Connect your property to this Component

Start to use it !!                                               No More !
UITextView
     Test Example ?
UIImageView
                                How to use it ?
 Define a property of UIImageView

 Synthesize your property

Drag and Drop your Component in your View in Interface Builder

SetYourImage using interface Builder OR using your Code

Connect your property to this Component

Start to use it !!
                                                                 No More !
UImageView
     Important Methods ?

  [self.imageView SetImage:[UIImage imageNamed: @”image.png”]];
UIImageView
    Test Example ?
MKMapView
                                How to use it ?
Define a property of MKMapView

 Synthesize your property

Drag and Drop your Component in your View in Interface Builder

Connect your property to this Component

Start to use it !!                                               No More !
MKMapView
   Important Methods ?

  RegionWillChangeAnimated

  RegionDidChangeAnimated
MKMapView
    Tested Last lecture :)
UIAlertView
                                             How to use it ?
 UIAlertView *alert = [[UIAlertView alloc]

 initWithTitle:@”No data yet!”

 message:@”No data has been received yet.”

 delegate:nil

 cancelButtonTitle:nil

 otherButtonTitles:@”OK”, nil];

 [alert show];                                                 No More !
UIAlertView
     Tested it ?
Working With
       UserDefaults and Plists
UserDefaults
                                                 How to use it ?
     Definition:

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];

     Usage

- (void)setBool:(BOOL)value forKey:(NSString *)defaultName

- (BOOL)boolForKey:(NSString *) defaultName

The same setters and getters are found for string, arrays, integers and floats
                                                                                 No More !
Plists                                     How to use it ?
To Read :

 NSString *path = [[NSBundle mainBundle] pathForResource:plist ofType:@"plist"];


 NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithContentsOfFile:path];


 NSLog(@”Contents is %@”,dic);


To Write

 NSString *path = [[NSBundle mainBundle] pathForResource:plist ofType:@"plist"];


 NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithContentsOfFile:path];


 [dic SetObject:@”Test” ForKey:@”mykey”];                                                No More !
Any Questions ?
Ready For The Project ?

More Related Content

PDF
준비하세요 Angular js 2.0
PPTX
Introduction to Angularjs
PDF
Angularjs architecture
PPTX
Angular js
PPTX
The AngularJS way
PDF
Advanced Tips & Tricks for using Angular JS
PDF
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
PDF
Integrating Angular js & three.js
준비하세요 Angular js 2.0
Introduction to Angularjs
Angularjs architecture
Angular js
The AngularJS way
Advanced Tips & Tricks for using Angular JS
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
Integrating Angular js & three.js

What's hot (20)

PDF
Introduction of angular js
PPTX
Angular 2.0 Routing and Navigation
PPTX
Academy PRO: React native - navigation
PPTX
AngularJS Best Practices
PDF
Workshop 17: EmberJS parte II
PDF
Angular JS blog tutorial
PPTX
Angular JS - Introduction
PDF
[FEConf Korea 2017]Angular 컴포넌트 대화법
PDF
Workshop 25: React Native - Components
KEY
AngularJS for designers and developers
PPTX
Practical AngularJS
PPTX
AngularJS for Java Developers
PPTX
Academy PRO: React native - building first scenes
PDF
AngularJS application architecture
PDF
Workshop 27: Isomorphic web apps with ReactJS
PDF
SF Cordova Meetup
PPTX
Angular js architecture (v1.4.8)
PPTX
AngularJs
PDF
Solid angular
ODP
AngularJs Crash Course
Introduction of angular js
Angular 2.0 Routing and Navigation
Academy PRO: React native - navigation
AngularJS Best Practices
Workshop 17: EmberJS parte II
Angular JS blog tutorial
Angular JS - Introduction
[FEConf Korea 2017]Angular 컴포넌트 대화법
Workshop 25: React Native - Components
AngularJS for designers and developers
Practical AngularJS
AngularJS for Java Developers
Academy PRO: React native - building first scenes
AngularJS application architecture
Workshop 27: Isomorphic web apps with ReactJS
SF Cordova Meetup
Angular js architecture (v1.4.8)
AngularJs
Solid angular
AngularJs Crash Course
Ad

Viewers also liked (6)

PDF
Game Kit - iPhone
PDF
360iDev MapKit Presentation - Denver 2009
KEY
Introduction to MapKit
PDF
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
PDF
Core Animation
PPTX
Slideshare ppt
Game Kit - iPhone
360iDev MapKit Presentation - Denver 2009
Introduction to MapKit
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
Core Animation
Slideshare ppt
Ad

Similar to IOS APPs Revision (20)

PPTX
Android and IOS UI Development (Android 5.0 and iOS 9.0)
PDF
iOS: Table Views
PPT
iOS Programming 101
PPTX
04 objective-c session 4
PPTX
iOS Development (Part 2)
PPTX
Code camp 2011 Getting Started with IOS, Una Daly
PDF
Advanced iOS
PDF
Session 14 - Working with table view and search bar
PDF
Cross platform mobile development
PDF
Ios 4 Programming Cookbook Solutions Examples For Iphone Ipad And Ipod Touch ...
PDF
Session 15 - Working with Image, Scroll, Collection, Picker, and Web View
PDF
Intro to UIKit • Made by Many
PDF
Swift
PDF
iOS 101 - Xcode, Objective-C, iOS APIs
PPTX
What is ui element in i phone developmetn
PDF
201104 iphone navigation-based apps
PPTX
Basic iOS Training with SWIFT - Part 3
PDF
iOS 5 Programming Cookbook Solutions Examples for iPhone iPad and iPod touch ...
PDF
03 objective-c session 3
PDF
Ios 7 Programming Cookbook 2nd Edition Vandad Nahavandipoor
Android and IOS UI Development (Android 5.0 and iOS 9.0)
iOS: Table Views
iOS Programming 101
04 objective-c session 4
iOS Development (Part 2)
Code camp 2011 Getting Started with IOS, Una Daly
Advanced iOS
Session 14 - Working with table view and search bar
Cross platform mobile development
Ios 4 Programming Cookbook Solutions Examples For Iphone Ipad And Ipod Touch ...
Session 15 - Working with Image, Scroll, Collection, Picker, and Web View
Intro to UIKit • Made by Many
Swift
iOS 101 - Xcode, Objective-C, iOS APIs
What is ui element in i phone developmetn
201104 iphone navigation-based apps
Basic iOS Training with SWIFT - Part 3
iOS 5 Programming Cookbook Solutions Examples for iPhone iPad and iPod touch ...
03 objective-c session 3
Ios 7 Programming Cookbook 2nd Edition Vandad Nahavandipoor

Recently uploaded (20)

PDF
01-Introduction-to-Information-Management.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
master seminar digital applications in india
PDF
Basic Mud Logging Guide for educational purpose
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Pharma ospi slides which help in ospi learning
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
TR - Agricultural Crops Production NC III.pdf
01-Introduction-to-Information-Management.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Supply Chain Operations Speaking Notes -ICLT Program
master seminar digital applications in india
Basic Mud Logging Guide for educational purpose
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pharma ospi slides which help in ospi learning
VCE English Exam - Section C Student Revision Booklet
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Renaissance Architecture: A Journey from Faith to Humanism
O5-L3 Freight Transport Ops (International) V1.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
2.FourierTransform-ShortQuestionswithAnswers.pdf
RMMM.pdf make it easy to upload and study
Sports Quiz easy sports quiz sports quiz
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Cell Structure & Organelles in detailed.
TR - Agricultural Crops Production NC III.pdf

IOS APPs Revision

  • 1. Final Revision IOS Track by Mohamed Amin
  • 2. Agenda Main Components Covered during the Course UIImageView UINavigationController MKMapView UITableView UIAlertView UITabBar Working With UserDefaults and Plists UIWebView UITextView
  • 3. Maps Navigation List table ImageView Grouped TabBar TextView
  • 4. UINavigationController How to use it ? Define a property of UINavigation Controller Synthesize your property Add this component to your Window As Subview Drag and Drop your Component in Interface Builder Connect your property to this Component No More ! Define your RootView xib and Class if you don`t have one , Start to make a new View and make it as a root
  • 5. UINavigationController Important Methods ? [PushViewController:(UIViewController) animated:(animated)]; [navigation PopViewController]; [navigation Pop toViewController:];
  • 6. UINavigationController Test Example ?
  • 7. UITableView How to use it ? List table Create New View Controller with TableView Type Define your Data Source (Arrays or Dictionary or Something else) Define Table layout number of Sections and rows Grouped table implement Delegate methods you will need like CellForRow , didSelectRowAtIndexPath and More No More !
  • 8. UITableView Important Methods ? [myTable reloadData] [myTable reloadRowsAtIndexPaths: withRowAnimation:]
  • 9. UITableView Important Delegate Methods ? didSelectRowAtIndexPath:(NSIndexPath *)indexPath numberOfRowsInSection:(NSInteger)section{ -(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ cellForRowAtIndexPath:(NSIndexPath *)indexPath
  • 10. UITableView Test Example ?
  • 11. UITabBarView How to use it ? Define a property of UITabBarController Synthesize your property Add this component to your Window As Subview Drag and Drop your Component in Interface Builder Connect your property to this Component Define your First View and Second View xib and Class if you don`t have one , Start to make Views !! No More !
  • 12. UITabBarView Test Example ?
  • 13. UIWebView How to use it ? Define a property of UIWebView Synthesize your property Drag and Drop your Component in your View in Interface Builder Connect your property to this Component Start to use it !! No More !
  • 14. UIWebView Important Delegate Methods ? (void)webViewDidFinishLoad:(UIWebView *)webView (void)webViewDidStartLoad:(UIWebView *)webView - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request No More !
  • 15. UIWebView Important Methods ? [self.webView loadRequest] [self.webView loadHTMLString]
  • 16. UIWebView Test Example ?
  • 17. UITextView How to use it ? Define a property of UITextView Synthesize your property Drag and Drop your Component in your View in Interface Builder Connect your property to this Component Start to use it !! No More !
  • 18. UITextView Test Example ?
  • 19. UIImageView How to use it ? Define a property of UIImageView Synthesize your property Drag and Drop your Component in your View in Interface Builder SetYourImage using interface Builder OR using your Code Connect your property to this Component Start to use it !! No More !
  • 20. UImageView Important Methods ? [self.imageView SetImage:[UIImage imageNamed: @”image.png”]];
  • 21. UIImageView Test Example ?
  • 22. MKMapView How to use it ? Define a property of MKMapView Synthesize your property Drag and Drop your Component in your View in Interface Builder Connect your property to this Component Start to use it !! No More !
  • 23. MKMapView Important Methods ? RegionWillChangeAnimated RegionDidChangeAnimated
  • 24. MKMapView Tested Last lecture :)
  • 25. UIAlertView How to use it ? UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@”No data yet!” message:@”No data has been received yet.” delegate:nil cancelButtonTitle:nil otherButtonTitles:@”OK”, nil]; [alert show]; No More !
  • 26. UIAlertView Tested it ?
  • 27. Working With UserDefaults and Plists
  • 28. UserDefaults How to use it ? Definition: NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; Usage - (void)setBool:(BOOL)value forKey:(NSString *)defaultName - (BOOL)boolForKey:(NSString *) defaultName The same setters and getters are found for string, arrays, integers and floats No More !
  • 29. Plists How to use it ? To Read : NSString *path = [[NSBundle mainBundle] pathForResource:plist ofType:@"plist"]; NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithContentsOfFile:path]; NSLog(@”Contents is %@”,dic); To Write NSString *path = [[NSBundle mainBundle] pathForResource:plist ofType:@"plist"]; NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithContentsOfFile:path]; [dic SetObject:@”Test” ForKey:@”mykey”]; No More !
  • 31. Ready For The Project ?