iphone response
<p>i am getting response like {"nok"} .... now i want to compare this for check status of data sent or not.<br>
this is my code   </p>

<pre><code>   NSString *responseStr = [sender responseString];


 NSLog(@"response string %@", responseStr);
if([responseStr isEqualToString:@"nok"])
 {
    NSLog(@"Hiii");
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:@"Attenzione: si è verificato un errore di richiesta del premio." delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil];
    [alert show];
    [alert release];
}
  else {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:@"Inviato con successo" delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil];
    [alert show];
    [alert release];
    [self startIscrivity2View];

       }
</code></pre>

<p>it's always run else part...</p>

<p>please help me</p>
