how to read data from an url link,and want to display it on my text view...... url link content contains only normal text
i am using
NSString *userAgreementStringURL = [NSString stringWithFormat:@"%@/requestConfigurationData.php?ownerID=%@&view=userAgreement", serverURL, ownerID]; NSURL *userAgreementURL = [NSURL URLWithString:userAgreementStringURL]; NSURLRequest *userAgreementRequest = [NSURLRequest requestWithURL:userAgreementURL]; userAgreementData = [[NSMutableData alloc] init]; [UIApplication sharedApplication].networkActivityIndicatorVisible = YES; userAgreementConnection = [[NSURLConnection connectionWithRequest:userAgreementRequest delegate:self] retain];
[userAgreementTextView setText:[NSString stringWithContentsOfURL:@"http://medicinephone.com/dev2/visit/requestConfigurationData.php?ownerID=13&view=userAgreement" encoding:NSUTF8StringEncoding error:NULL]];