SlideShare uma empresa Scribd logo
1 de 31
Baixar para ler offline
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 ?

Mais conteúdo relacionado

Mais procurados

Introduction of angular js
Introduction of angular jsIntroduction of angular js
Introduction of angular jsTamer Solieman
 
Angular 2.0 Routing and Navigation
Angular 2.0 Routing and NavigationAngular 2.0 Routing and Navigation
Angular 2.0 Routing and NavigationEyal Vardi
 
Academy PRO: React native - navigation
Academy PRO: React native - navigationAcademy PRO: React native - navigation
Academy PRO: React native - navigationBinary Studio
 
Angular JS blog tutorial
Angular JS blog tutorialAngular JS blog tutorial
Angular JS blog tutorialClaude Tech
 
Angular JS - Introduction
Angular JS - IntroductionAngular JS - Introduction
Angular JS - IntroductionSagar Acharya
 
[FEConf Korea 2017]Angular 컴포넌트 대화법
[FEConf Korea 2017]Angular 컴포넌트 대화법[FEConf Korea 2017]Angular 컴포넌트 대화법
[FEConf Korea 2017]Angular 컴포넌트 대화법Jeado Ko
 
Workshop 25: React Native - Components
Workshop 25: React Native - ComponentsWorkshop 25: React Native - Components
Workshop 25: React Native - ComponentsVisual Engineering
 
AngularJS for designers and developers
AngularJS for designers and developersAngularJS for designers and developers
AngularJS for designers and developersKai Koenig
 
Practical AngularJS
Practical AngularJSPractical AngularJS
Practical AngularJSWei Ru
 
AngularJS for Java Developers
AngularJS for Java DevelopersAngularJS for Java Developers
AngularJS for Java DevelopersLoc Nguyen
 
Academy PRO: React native - building first scenes
Academy PRO: React native - building first scenesAcademy PRO: React native - building first scenes
Academy PRO: React native - building first scenesBinary Studio
 
AngularJS application architecture
AngularJS application architectureAngularJS application architecture
AngularJS application architectureGabriele Falace
 
Workshop 27: Isomorphic web apps with ReactJS
Workshop 27: Isomorphic web apps with ReactJSWorkshop 27: Isomorphic web apps with ReactJS
Workshop 27: Isomorphic web apps with ReactJSVisual Engineering
 

Mais procurados (20)

Introduction of angular js
Introduction of angular jsIntroduction of angular js
Introduction of angular js
 
Angular 2.0 Routing and Navigation
Angular 2.0 Routing and NavigationAngular 2.0 Routing and Navigation
Angular 2.0 Routing and Navigation
 
Academy PRO: React native - navigation
Academy PRO: React native - navigationAcademy PRO: React native - navigation
Academy PRO: React native - navigation
 
AngularJS Best Practices
AngularJS Best PracticesAngularJS Best Practices
AngularJS Best Practices
 
Workshop 17: EmberJS parte II
Workshop 17: EmberJS parte IIWorkshop 17: EmberJS parte II
Workshop 17: EmberJS parte II
 
Angular JS blog tutorial
Angular JS blog tutorialAngular JS blog tutorial
Angular JS blog tutorial
 
Angular JS - Introduction
Angular JS - IntroductionAngular JS - Introduction
Angular JS - Introduction
 
[FEConf Korea 2017]Angular 컴포넌트 대화법
[FEConf Korea 2017]Angular 컴포넌트 대화법[FEConf Korea 2017]Angular 컴포넌트 대화법
[FEConf Korea 2017]Angular 컴포넌트 대화법
 
Workshop 25: React Native - Components
Workshop 25: React Native - ComponentsWorkshop 25: React Native - Components
Workshop 25: React Native - Components
 
AngularJS for designers and developers
AngularJS for designers and developersAngularJS for designers and developers
AngularJS for designers and developers
 
Practical AngularJS
Practical AngularJSPractical AngularJS
Practical AngularJS
 
AngularJS for Java Developers
AngularJS for Java DevelopersAngularJS for Java Developers
AngularJS for Java Developers
 
Academy PRO: React native - building first scenes
Academy PRO: React native - building first scenesAcademy PRO: React native - building first scenes
Academy PRO: React native - building first scenes
 
AngularJS application architecture
AngularJS application architectureAngularJS application architecture
AngularJS application architecture
 
Workshop 27: Isomorphic web apps with ReactJS
Workshop 27: Isomorphic web apps with ReactJSWorkshop 27: Isomorphic web apps with ReactJS
Workshop 27: Isomorphic web apps with ReactJS
 
SF Cordova Meetup
SF Cordova MeetupSF Cordova Meetup
SF Cordova Meetup
 
Angular js architecture (v1.4.8)
Angular js architecture (v1.4.8)Angular js architecture (v1.4.8)
Angular js architecture (v1.4.8)
 
AngularJs
AngularJsAngularJs
AngularJs
 
Solid angular
Solid angularSolid angular
Solid angular
 
AngularJs Crash Course
AngularJs Crash CourseAngularJs Crash Course
AngularJs Crash Course
 

Destaque

Game Kit - iPhone
Game Kit - iPhoneGame Kit - iPhone
Game Kit - iPhonebdudney
 
360iDev MapKit Presentation - Denver 2009
360iDev MapKit Presentation - Denver 2009360iDev MapKit Presentation - Denver 2009
360iDev MapKit Presentation - Denver 2009bdudney
 
Introduction to MapKit
Introduction to MapKitIntroduction to MapKit
Introduction to MapKitRob C
 
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
Keeping Track of Moving Things: MapKit and CoreLocation in DepthKeeping Track of Moving Things: MapKit and CoreLocation in Depth
Keeping Track of Moving Things: MapKit and CoreLocation in DepthGeoffrey Goetz
 
Core Animation
Core AnimationCore Animation
Core Animationbdudney
 

Destaque (6)

Game Kit - iPhone
Game Kit - iPhoneGame Kit - iPhone
Game Kit - iPhone
 
360iDev MapKit Presentation - Denver 2009
360iDev MapKit Presentation - Denver 2009360iDev MapKit Presentation - Denver 2009
360iDev MapKit Presentation - Denver 2009
 
Introduction to MapKit
Introduction to MapKitIntroduction to MapKit
Introduction to MapKit
 
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
Keeping Track of Moving Things: MapKit and CoreLocation in DepthKeeping Track of Moving Things: MapKit and CoreLocation in Depth
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
 
Core Animation
Core AnimationCore Animation
Core Animation
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 

Semelhante a IOS APPs Revision

Leaving Interface Builder Behind
Leaving Interface Builder BehindLeaving Interface Builder Behind
Leaving Interface Builder BehindJohn Wilker
 
Intro to iOS Application Architecture
Intro to iOS Application ArchitectureIntro to iOS Application Architecture
Intro to iOS Application ArchitectureMake School
 
April iOS Meetup - UIAppearance Presentation
April iOS Meetup - UIAppearance PresentationApril iOS Meetup - UIAppearance Presentation
April iOS Meetup - UIAppearance PresentationLong Weekend LLC
 
Creating Container View Controllers
Creating Container View ControllersCreating Container View Controllers
Creating Container View ControllersBob McCune
 
Formacion en movilidad: Conceptos de desarrollo en iOS (III)
Formacion en movilidad: Conceptos de desarrollo en iOS (III) Formacion en movilidad: Conceptos de desarrollo en iOS (III)
Formacion en movilidad: Conceptos de desarrollo en iOS (III) Mobivery
 
Intro to UIKit • Made by Many
Intro to UIKit • Made by ManyIntro to UIKit • Made by Many
Intro to UIKit • Made by Manykenatmxm
 
Do iOS Presentation - Mobile app architectures
Do iOS Presentation - Mobile app architecturesDo iOS Presentation - Mobile app architectures
Do iOS Presentation - Mobile app architecturesDavid Broža
 
Swift Tableview iOS App Development
Swift Tableview iOS App DevelopmentSwift Tableview iOS App Development
Swift Tableview iOS App DevelopmentKetan Raval
 
MVVM with SwiftUI and Combine
MVVM with SwiftUI and CombineMVVM with SwiftUI and Combine
MVVM with SwiftUI and CombineTai Lun Tseng
 
Using a model view-view model architecture for iOS apps
Using a model view-view model architecture for iOS appsUsing a model view-view model architecture for iOS apps
Using a model view-view model architecture for iOS appsallanh0526
 
New to native? Getting Started With iOS Development
New to native?   Getting Started With iOS DevelopmentNew to native?   Getting Started With iOS Development
New to native? Getting Started With iOS DevelopmentGeoffrey Goetz
 
iOS Design to Code - Code
iOS Design to Code - CodeiOS Design to Code - Code
iOS Design to Code - CodeLiyao Chen
 

Semelhante a IOS APPs Revision (20)

004
004004
004
 
I os 11
I os 11I os 11
I os 11
 
iOS: View Controllers
iOS: View ControllersiOS: View Controllers
iOS: View Controllers
 
Objective c design pattens-architetcure
Objective c design pattens-architetcureObjective c design pattens-architetcure
Objective c design pattens-architetcure
 
Leaving Interface Builder Behind
Leaving Interface Builder BehindLeaving Interface Builder Behind
Leaving Interface Builder Behind
 
Intro to iOS Application Architecture
Intro to iOS Application ArchitectureIntro to iOS Application Architecture
Intro to iOS Application Architecture
 
IOS Storyboards
IOS StoryboardsIOS Storyboards
IOS Storyboards
 
April iOS Meetup - UIAppearance Presentation
April iOS Meetup - UIAppearance PresentationApril iOS Meetup - UIAppearance Presentation
April iOS Meetup - UIAppearance Presentation
 
Creating Container View Controllers
Creating Container View ControllersCreating Container View Controllers
Creating Container View Controllers
 
Formacion en movilidad: Conceptos de desarrollo en iOS (III)
Formacion en movilidad: Conceptos de desarrollo en iOS (III) Formacion en movilidad: Conceptos de desarrollo en iOS (III)
Formacion en movilidad: Conceptos de desarrollo en iOS (III)
 
Intro to UIKit • Made by Many
Intro to UIKit • Made by ManyIntro to UIKit • Made by Many
Intro to UIKit • Made by Many
 
занятие6
занятие6занятие6
занятие6
 
201104 iphone navigation-based apps
201104 iphone navigation-based apps201104 iphone navigation-based apps
201104 iphone navigation-based apps
 
Do iOS Presentation - Mobile app architectures
Do iOS Presentation - Mobile app architecturesDo iOS Presentation - Mobile app architectures
Do iOS Presentation - Mobile app architectures
 
Swift Tableview iOS App Development
Swift Tableview iOS App DevelopmentSwift Tableview iOS App Development
Swift Tableview iOS App Development
 
Swf2 ui
Swf2 uiSwf2 ui
Swf2 ui
 
MVVM with SwiftUI and Combine
MVVM with SwiftUI and CombineMVVM with SwiftUI and Combine
MVVM with SwiftUI and Combine
 
Using a model view-view model architecture for iOS apps
Using a model view-view model architecture for iOS appsUsing a model view-view model architecture for iOS apps
Using a model view-view model architecture for iOS apps
 
New to native? Getting Started With iOS Development
New to native?   Getting Started With iOS DevelopmentNew to native?   Getting Started With iOS Development
New to native? Getting Started With iOS Development
 
iOS Design to Code - Code
iOS Design to Code - CodeiOS Design to Code - Code
iOS Design to Code - Code
 

Último

INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxJanEmmanBrigoli
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxRosabel UA
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsRommel Regala
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEaurabinda banchhor
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxruthvilladarez
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 

Último (20)

INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptx
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World Politics
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSE
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 

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 ?