Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is the Answer(you should convert your datetime to string) :-</p> <pre><code> NSString *post =[NSString stringWithFormat:@"app_key=%@&amp;signature=%@&amp;timestamp=%@&amp;user_id=%@&amp;password=%@",appKEY,Signature,Datetime,UID,Password]; NSData *postData = [post dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES]; NSString *postLength = [NSString stringWithFormat:@"%d", [postData length]]; NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease]; [request setURL:[NSURL URLWithString:@"Your URL"]]; [request setHTTPMethod:@"POST"]; [request setValue:postLength forHTTPHeaderField:@"Content-Length"]; [request setValue:@"application/x-www-form-urlencoded charset=utf-8" forHTTPHeaderField:@"Content-Type"]; [request setHTTPBody:postData]; NSError *error; NSURLResponse *response; NSData *returnData=[NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;error]; if (error) { NSLog(@"Error is %@",[error localizedDescription]); } returnString=[[NSString alloc]initWithData:returnData encoding:NSUTF8StringEncoding]; if(!returnString) { UIAlertView *erroralert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"There is an error getting response" delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil]; [erroralert show]; [erroralert release]; } else { NSLog(@"%@",returnString); } SBJSON *json = [[SBJSON new] autorelease]; NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithDictionary:[json objectWithString:returnString error:nil]]; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload