Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <UIKit/UIKit.h>
- @interface ViewController : UIViewController <NSURLConnectionDelegate>
- // This method is used to receive the data which we get using post method.
- - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData*)data;
- // This method receives the error report in case of connection is not made to server.
- - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error;
- // This method is used to process the data after connection has made successfully.
- - (void)connectionDidFinishLoading:(NSURLConnection *)connection;
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement