Advertisement
thieumao

Json objective c demo .h

May 18th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import <UIKit/UIKit.h>
  2.  
  3. @interface ViewController : UIViewController <NSURLConnectionDelegate>
  4.  
  5.  
  6. // This method is used to receive the data which we get using post method.
  7. - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData*)data;
  8.  
  9. // This method receives the error report in case of connection is not made to server.
  10. - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error;
  11.  
  12. // This method is used to process the data after connection has made successfully.
  13. - (void)connectionDidFinishLoading:(NSURLConnection *)connection;
  14.  
  15. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement