SlideShare a Scribd company logo
Presentation on  iPhone Presented by: Dhananjay Fartyal Sumit Kumar   iPhone Trainee(A-1Technology)
Contents INTRODUCTION TECHNICAL SPECIFICATIONS CHECK THE INTERNET CONNECTIVITY IN IPHONE INTERNAL SQLITE DATABASE. CURRENT LOCATION WITH MAPKIT JSON PARSING IN THE IPHONE APPLICATION IN-APP PURCHASE E-PRINT AND AIRPLAY
Introduction The iPhone  Internet- and multimedia-enabled smart phone designed and marketed by Apple Inc. The first iPhone was unveiled by Apple CEO Steve Job in 2007. There are four generations of iPhone models.  1st Generation:  Original iPhone 2nd Generation:  iPhone 3G  3rd Generation:  iPhone 3GS  4th Generation:  iPhone 4
Technical Specifications
Network Connectivity For checking the network status in iphone we use a class reachability provide by the apple for which we have to import the “SystemConfiguration” framework.which is responsible to get the information about the network connection.
Network Connectivity 1) Add  SystemConfiguration  framework to the project . 2) Add  Reachability.h and Reachability.m  to the project provided  by apple. 3) Add @ class Reachability ; to the .h file of where you are  implementing the code.
Cont.. 4)  Import at the beginning of  implementation file #import "Reachability.h" Reachability *r = [Reachability reachabilityWithHostName:@"www.google.com"]; NetworkStatus internetStatus = [r currentReachabilityStatus]; if ((internetStatus != ReachableViaWiFi) && (internetStatus != ReachableViaWWAN)){ //   ALEART HERE (connection not available)   } else {  // WHATEVER WE WANT(connection available) }
SQLite SQLite is an open source library, written in C, that implements a self contained SQL relational database engine. You can use SQLite to store large amounts of relational data, and it is optimized for use on embedded devices like the iPhone.
Why SQLite The library is small enough to use effectively on mobile devices with limited memory. SQLite requiers no configuration files Weighing in at less than 300K. It has no setup procedure, just drop database file on the iPhone,  include the SQLite library in iPhone project
SQLite in iPhone Step1 : Create a SQLite Database File Using terminal( sqlite3 database_name.db) Using manually by coding Using firefox SQLite manager Step 2:Create the Database schema Number of Tables Fields of tables
SQLite in iPhone Step 3: Add the Database File into Project Step 4: Add the SQLite Library Add the libsqlite3.0.dylib Step 5:Write SQLite code
Sample Code // Open the database connection - (void)initializeDatabase { // Get the database from the application bundle. NSString *path = [[NSBundle mainBundle] pathForResource:@”DATABASE_NAME”ofType:@”db”]; // Open the database. if (sqlite3_open([path UTF8String], & database) == SQLITE_OK) { NSLog(@”Opening Database”); } else{ // Call close to properly clean up sqlite3_close(database); NSAssert1(0, @”Failed to open database: ‘%s’.”, sqlite3_errmsg(database)); }}
Cont.. // The SQL statement const char *sql = “SELECT product.ID,product.Name FROM TABLE_NAME; // The SQLite statement object that will hold our result set sqlite3_stmt *statement; // Prepare the statement to compile the SQL query into byte-code int sqlResult = sqlite3_prepare_v2(database, sql, -1, & statement, NULL); // Getting the row. while(sqlite3_step(statement) == SQLITE_ROW) // finalize the statement to release its resources sqlite3_finalize(statement);
Core Location The Core Location framework lets you determine the current location or heading associated with a device. The framework uses the available hardware to determine the user’s position and heading. You use the classes and protocols in this framework to configure and schedule the delivery of location and heading events. You can also use it to define geographic regions and monitor when the user crosses the boundaries of those regions.
Current location cont. GETTING  THE LATITUDE AND LONGITUDE: NSString * lat  = [[NSString alloc] initWithFormat:@"%g", newLocation.coordinate.latitude]; NSString * long  = [[NSString alloc] initWithFormat:@"%g",  newLocation.coordinate.longitude];
Current Location.... Framework: Core Location #import <CoreLocation/CoreLocation.h> Delegate: <CLLocationManagerDelegate> Methods: - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation; - (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error;
Displaying Maps Framework :  MKMapKit #import <MapKit/MapKit.h> Class : MKMapView class Delegate method: - (MKAnnotationView *) mapView:(MKMapView *)thisMapView  viewForAnnotation:(MapAnnotations *)annotation{ } MKCoordinateRegion region;  // Area currently displaying region.center =  newLocation.coordinate ; region.span=span; [mapView setRegion:region animated:TRUE];
 
JSON Parsing in iPhone JSON (JavaScript Object Notation) data format in client-server  communications when writing an iPhone application. JSON  is a lightweight data-interchange format.  It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming  Language.
Using JSON-framework •  Adds functionality to NSObject / NSString via Obj-C categories •  Convert from a plist value to JSON string •  Convert from a JSON string to plist value (NSArray or NSDictionary) #import <JSON/JSON.h> // NSObject.h - (NSString *)JSONRepresentation; // NSString+SBJSON.h - (id)JSONValue;
JSON Example { “ auto-part” : {  “ part-id” : 314, “ name” : “Flux Capacitor”,  … .. #import <JSON/JSON.h> NSString *jsonString = [NSString stringWithContentsOfURL:url];  NSDictionary *partsStore = [jsonString JSONValue]; NSDictionary *autoPart = [partsStore objectForKey:@”auto-part”];  NSString *partName = [autoPart objectForKey:@”name”];
Overview of In App Purchase Store Kit communicates with the App Store on behalf of your application. Your application uses Store Kit to receive localized information from the App Store about products you want to offer in your application. Your application displays this information to users and allows them to purchase items. When a user wants to purchase an item, your app calls Store Kit to collect payment from the user.
In-app purchase on iphone
E-Print iOS now incorporates support for wireless printing from iPhone and iPad applications. For the most part, the objects provided by  UIKit  do all of the heavy lifting associated with printing. They manage the printing interfaces, work with your application to render the printable content, and handle the scheduling and execution of print jobs on the printer. Wireless printing is available only on devices that support multitasking. You can use the  UIPrintInteractionController  object to detect whether printing is available in your application.
 
 
AirPlay AirPlay is a technology that lets your application stream audio to Apple TV and to third-party AirPlay speakers and receivers. AirPlay support is built in to the AV Foundation framework and the Core Audio family of frameworks. Any audio content you play using these frameworks is automatically made eligible for AirPlay distribution. Once the user chooses to play your audio using AirPlay, it is routed automatically by the system.
Framework Used: AV Foundation framework Core Audio family of frameworks. The interface presented by the  MPVolumeView  class now includes a control for routing audio content to AirPlay–enabled devices.
  THANKS

More Related Content

PPT
08 10-2013 gtu projects - develop final sem gtu project in i phone
PDF
Yet Another Fog Simulator (YAFS) - user guide
PPTX
Mobile Application testing- All you want to know to get started!!
PDF
iPhone Presentation IN10: Mobile Everywhere
PDF
Iphone Presentation
ODP
iPhone presentation from Brenna
PPT
iphone presentation
PPTX
I phone presentation
08 10-2013 gtu projects - develop final sem gtu project in i phone
Yet Another Fog Simulator (YAFS) - user guide
Mobile Application testing- All you want to know to get started!!
iPhone Presentation IN10: Mobile Everywhere
Iphone Presentation
iPhone presentation from Brenna
iphone presentation
I phone presentation

Viewers also liked (20)

PPT
WAFIC Social Media Presentation
PDF
Future of Mobile iPhone Presentation
PDF
iPhone Seminar Part 1
PDF
iOS 8 for iPhone
PPTX
Iphone-evolution-history-all models-Specifications
PPT
Certified Management Accountants of Saskatchewan Social Media Presentation
PPT
Submarine
PDF
History of iOS
PPTX
Submarine Presentation Pwrpt
PDF
Pazarlama planı
PPT
Web 2.0 Social Media Presentation
PPTX
Features of iOS-7
PPT
Social Media Presentation
PDF
Apple iOS Report
PPTX
The iPhone Evolution
PPTX
Ios operating system
PPTX
Marketing mix of apple
PPTX
iPhone 7 Overview with Features
PPTX
Marketing mix of dell and apple
PPTX
Pazarlama stratejileri
WAFIC Social Media Presentation
Future of Mobile iPhone Presentation
iPhone Seminar Part 1
iOS 8 for iPhone
Iphone-evolution-history-all models-Specifications
Certified Management Accountants of Saskatchewan Social Media Presentation
Submarine
History of iOS
Submarine Presentation Pwrpt
Pazarlama planı
Web 2.0 Social Media Presentation
Features of iOS-7
Social Media Presentation
Apple iOS Report
The iPhone Evolution
Ios operating system
Marketing mix of apple
iPhone 7 Overview with Features
Marketing mix of dell and apple
Pazarlama stratejileri
Ad

Similar to iphone presentation (20)

PDF
SpringPeople Introduction to iOS Apps Development
PPTX
iOS Core location
PPTX
iPhone Workshop Mobile Monday Ahmedabad
KEY
MacRuby for Fun and Profit
KEY
iPhone project - Wireless networks seminar
PDF
Objective C Fundamentals 1st Edition Christopher Fairbairn
PDF
Objective C Fundamentals 1st Edition Christopher Fairbairn
PPTX
iOS platform
PPT
iPhone Programming
PPT
Connecting to a REST API in iOS
PPTX
Layer architecture of ios (1)
PDF
Никита Корчагин - Introduction to Apple iOS Development.
PDF
MFF UK - Introduction to iOS
PDF
iOS 7 in Action 1st Edition Brendan G. Lim
PDF
iPhone dev intro
PDF
Beginning to iPhone development
PDF
iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 7)
PDF
FI MUNI 2012 - iOS Basics
PDF
iOS 7 in Action 1st Edition Brendan G. Lim
PDF
iPhone in action introduction to Web and SDK development 1st Edition Christop...
SpringPeople Introduction to iOS Apps Development
iOS Core location
iPhone Workshop Mobile Monday Ahmedabad
MacRuby for Fun and Profit
iPhone project - Wireless networks seminar
Objective C Fundamentals 1st Edition Christopher Fairbairn
Objective C Fundamentals 1st Edition Christopher Fairbairn
iOS platform
iPhone Programming
Connecting to a REST API in iOS
Layer architecture of ios (1)
Никита Корчагин - Introduction to Apple iOS Development.
MFF UK - Introduction to iOS
iOS 7 in Action 1st Edition Brendan G. Lim
iPhone dev intro
Beginning to iPhone development
iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 7)
FI MUNI 2012 - iOS Basics
iOS 7 in Action 1st Edition Brendan G. Lim
iPhone in action introduction to Web and SDK development 1st Edition Christop...
Ad

Recently uploaded (20)

PDF
Chapter 2 Digital Image Fundamentals.pdf
PDF
SparkLabs Primer on Artificial Intelligence 2025
PDF
Google’s NotebookLM Unveils Video Overviews
PDF
Doc9.....................................
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
creating-agentic-ai-solutions-leveraging-aws.pdf
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
PDF
CIFDAQ's Token Spotlight: SKY - A Forgotten Giant's Comeback?
PDF
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
PPTX
How Much Does It Cost to Build a Train Ticket App like Trenitalia in Italy.pptx
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
This slide provides an overview Technology
PDF
REPORT: Heating appliances market in Poland 2024
PDF
Test Bank, Solutions for Java How to Program, An Objects-Natural Approach, 12...
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
PDF
Reimagining Insurance: Connected Data for Confident Decisions.pdf
Chapter 2 Digital Image Fundamentals.pdf
SparkLabs Primer on Artificial Intelligence 2025
Google’s NotebookLM Unveils Video Overviews
Doc9.....................................
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
creating-agentic-ai-solutions-leveraging-aws.pdf
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
ChatGPT's Deck on The Enduring Legacy of Fax Machines
CIFDAQ's Token Spotlight: SKY - A Forgotten Giant's Comeback?
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
How Much Does It Cost to Build a Train Ticket App like Trenitalia in Italy.pptx
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
This slide provides an overview Technology
REPORT: Heating appliances market in Poland 2024
Test Bank, Solutions for Java How to Program, An Objects-Natural Approach, 12...
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Reimagining Insurance: Connected Data for Confident Decisions.pdf

iphone presentation

  • 1. Presentation on iPhone Presented by: Dhananjay Fartyal Sumit Kumar iPhone Trainee(A-1Technology)
  • 2. Contents INTRODUCTION TECHNICAL SPECIFICATIONS CHECK THE INTERNET CONNECTIVITY IN IPHONE INTERNAL SQLITE DATABASE. CURRENT LOCATION WITH MAPKIT JSON PARSING IN THE IPHONE APPLICATION IN-APP PURCHASE E-PRINT AND AIRPLAY
  • 3. Introduction The iPhone Internet- and multimedia-enabled smart phone designed and marketed by Apple Inc. The first iPhone was unveiled by Apple CEO Steve Job in 2007. There are four generations of iPhone models. 1st Generation: Original iPhone 2nd Generation: iPhone 3G 3rd Generation: iPhone 3GS 4th Generation: iPhone 4
  • 5. Network Connectivity For checking the network status in iphone we use a class reachability provide by the apple for which we have to import the “SystemConfiguration” framework.which is responsible to get the information about the network connection.
  • 6. Network Connectivity 1) Add SystemConfiguration framework to the project . 2) Add Reachability.h and Reachability.m to the project provided by apple. 3) Add @ class Reachability ; to the .h file of where you are implementing the code.
  • 7. Cont.. 4) Import at the beginning of implementation file #import &quot;Reachability.h&quot; Reachability *r = [Reachability reachabilityWithHostName:@&quot;www.google.com&quot;]; NetworkStatus internetStatus = [r currentReachabilityStatus]; if ((internetStatus != ReachableViaWiFi) && (internetStatus != ReachableViaWWAN)){ // ALEART HERE (connection not available) } else { // WHATEVER WE WANT(connection available) }
  • 8. SQLite SQLite is an open source library, written in C, that implements a self contained SQL relational database engine. You can use SQLite to store large amounts of relational data, and it is optimized for use on embedded devices like the iPhone.
  • 9. Why SQLite The library is small enough to use effectively on mobile devices with limited memory. SQLite requiers no configuration files Weighing in at less than 300K. It has no setup procedure, just drop database file on the iPhone, include the SQLite library in iPhone project
  • 10. SQLite in iPhone Step1 : Create a SQLite Database File Using terminal( sqlite3 database_name.db) Using manually by coding Using firefox SQLite manager Step 2:Create the Database schema Number of Tables Fields of tables
  • 11. SQLite in iPhone Step 3: Add the Database File into Project Step 4: Add the SQLite Library Add the libsqlite3.0.dylib Step 5:Write SQLite code
  • 12. Sample Code // Open the database connection - (void)initializeDatabase { // Get the database from the application bundle. NSString *path = [[NSBundle mainBundle] pathForResource:@”DATABASE_NAME”ofType:@”db”]; // Open the database. if (sqlite3_open([path UTF8String], & database) == SQLITE_OK) { NSLog(@”Opening Database”); } else{ // Call close to properly clean up sqlite3_close(database); NSAssert1(0, @”Failed to open database: ‘%s’.”, sqlite3_errmsg(database)); }}
  • 13. Cont.. // The SQL statement const char *sql = “SELECT product.ID,product.Name FROM TABLE_NAME; // The SQLite statement object that will hold our result set sqlite3_stmt *statement; // Prepare the statement to compile the SQL query into byte-code int sqlResult = sqlite3_prepare_v2(database, sql, -1, & statement, NULL); // Getting the row. while(sqlite3_step(statement) == SQLITE_ROW) // finalize the statement to release its resources sqlite3_finalize(statement);
  • 14. Core Location The Core Location framework lets you determine the current location or heading associated with a device. The framework uses the available hardware to determine the user’s position and heading. You use the classes and protocols in this framework to configure and schedule the delivery of location and heading events. You can also use it to define geographic regions and monitor when the user crosses the boundaries of those regions.
  • 15. Current location cont. GETTING THE LATITUDE AND LONGITUDE: NSString * lat = [[NSString alloc] initWithFormat:@&quot;%g&quot;, newLocation.coordinate.latitude]; NSString * long = [[NSString alloc] initWithFormat:@&quot;%g&quot;, newLocation.coordinate.longitude];
  • 16. Current Location.... Framework: Core Location #import <CoreLocation/CoreLocation.h> Delegate: <CLLocationManagerDelegate> Methods: - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation; - (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error;
  • 17. Displaying Maps Framework : MKMapKit #import <MapKit/MapKit.h> Class : MKMapView class Delegate method: - (MKAnnotationView *) mapView:(MKMapView *)thisMapView viewForAnnotation:(MapAnnotations *)annotation{ } MKCoordinateRegion region; // Area currently displaying region.center = newLocation.coordinate ; region.span=span; [mapView setRegion:region animated:TRUE];
  • 18.  
  • 19. JSON Parsing in iPhone JSON (JavaScript Object Notation) data format in client-server communications when writing an iPhone application. JSON is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language.
  • 20. Using JSON-framework • Adds functionality to NSObject / NSString via Obj-C categories • Convert from a plist value to JSON string • Convert from a JSON string to plist value (NSArray or NSDictionary) #import <JSON/JSON.h> // NSObject.h - (NSString *)JSONRepresentation; // NSString+SBJSON.h - (id)JSONValue;
  • 21. JSON Example { “ auto-part” : { “ part-id” : 314, “ name” : “Flux Capacitor”, … .. #import <JSON/JSON.h> NSString *jsonString = [NSString stringWithContentsOfURL:url]; NSDictionary *partsStore = [jsonString JSONValue]; NSDictionary *autoPart = [partsStore objectForKey:@”auto-part”]; NSString *partName = [autoPart objectForKey:@”name”];
  • 22. Overview of In App Purchase Store Kit communicates with the App Store on behalf of your application. Your application uses Store Kit to receive localized information from the App Store about products you want to offer in your application. Your application displays this information to users and allows them to purchase items. When a user wants to purchase an item, your app calls Store Kit to collect payment from the user.
  • 24. E-Print iOS now incorporates support for wireless printing from iPhone and iPad applications. For the most part, the objects provided by UIKit do all of the heavy lifting associated with printing. They manage the printing interfaces, work with your application to render the printable content, and handle the scheduling and execution of print jobs on the printer. Wireless printing is available only on devices that support multitasking. You can use the UIPrintInteractionController object to detect whether printing is available in your application.
  • 25.  
  • 26.  
  • 27. AirPlay AirPlay is a technology that lets your application stream audio to Apple TV and to third-party AirPlay speakers and receivers. AirPlay support is built in to the AV Foundation framework and the Core Audio family of frameworks. Any audio content you play using these frameworks is automatically made eligible for AirPlay distribution. Once the user chooses to play your audio using AirPlay, it is routed automatically by the system.
  • 28. Framework Used: AV Foundation framework Core Audio family of frameworks. The interface presented by the MPVolumeView class now includes a control for routing audio content to AirPlay–enabled devices.