Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
iPhone Application Development CourseNSURLConnection                      Mr.Chalermchon Sommana                      Brig...
Outline●Connect URL●Receive Data from URL change to XML Parser●Read XML Parser●Create Class for XML●Present XML Data
Overview             Connect URL                           PHP                                 Query database             ...
Workshop                        Test UI    Interface Builder             Output
Connect URL●Create NSURL with string●URLRequest●Connection and set delegate
NSURLConnection delegate●Start connection   didReceiveResponse●Receive data from URL   didReceiveData●End connection  conn...
XMLParser delegateStart Document●    parserDidStartDocumentStart Element●    didStartElementCharacter●    foundCharactersE...
XML Structure<?xml version="1.0" encoding="UTF-8"?><todolist><list id=1><todo>home work</todo><priority>1</priority></list...
Custom Class: ToDoListToDoList Class:{   NSString *todo_id;   NSString *todo_work;   NSString *todo_priority;}
iPhone Application Development CourseNSURLConnectionContact usBrightest IDEA: http://www.brightest-idea.comMr.Chalermchon ...
Upcoming SlideShare
Loading in …5
×

iPhone NSURLConnection

1,328 views

Published on

iPhone NSURLConnection

see more android/iOS application Development : http://adayd3sign.wordpress.com/
join me : http://www.brightest-idea.com

  • Be the first to like this

iPhone NSURLConnection

  1. 1. iPhone Application Development CourseNSURLConnection Mr.Chalermchon Sommana Brightest IDEA
  2. 2. Outline●Connect URL●Receive Data from URL change to XML Parser●Read XML Parser●Create Class for XML●Present XML Data
  3. 3. Overview Connect URL PHP Query database XML MySQL iPhone
  4. 4. Workshop Test UI Interface Builder Output
  5. 5. Connect URL●Create NSURL with string●URLRequest●Connection and set delegate
  6. 6. NSURLConnection delegate●Start connection didReceiveResponse●Receive data from URL didReceiveData●End connection connectionDidFinishLoading●Error report didFailWithError
  7. 7. XMLParser delegateStart Document● parserDidStartDocumentStart Element● didStartElementCharacter● foundCharactersEnd Element● didEndElementEnd Document● parserDidEndDocument
  8. 8. XML Structure<?xml version="1.0" encoding="UTF-8"?><todolist><list id=1><todo>home work</todo><priority>1</priority></list><list id=2><todo>shopping</todo><priority>2</priority></list>...</todolist>
  9. 9. Custom Class: ToDoListToDoList Class:{ NSString *todo_id; NSString *todo_work; NSString *todo_priority;}
  10. 10. iPhone Application Development CourseNSURLConnectionContact usBrightest IDEA: http://www.brightest-idea.comMr.Chalermchon SommanaBlog: http://adayd3sign.wordpress.comThank you.

×