You can make a global NSString
variable which defines you message
In .h
file
NSString *message;
In jsonParse
method
- (void)jsonParse {
//Your Stuff
message = [NSString stringWithFormat:@"OK! There is another collection which located at room %@ in level %@", lData, rData];
}
and then in your UIAlertView
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Recommendation"
message:message
delegate:self
cancelButtonTitle:nil
otherButtonTitles:@"GO", nil];
[alert show];