objective c - iPhone: How to send httprequest via button? -


There is 1 button on a view screen, when a user clicks on a httprequest

this! Nothing is loaded on the screen! The page is only loaded in the background.

Try this // URL string encoding

  NSString * escapedUrl = [AURL stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];  

// Create a request

  NSURLRequest * aRequest = [NSRR request request with url: [ns URL URLWithString: escapedUrl] Cash Policy: NSURLRequestUseProtocolCachePolicy timeoutInterval: 60.0] ;  

// Make a connection with the request // Start loading the data NSURLConnection * aConnection = [[NSURLConnection alloc] initWithRequest: A request representative: Self];


Comments