I just added a password protect to a folder on my website. My current project accesses a folder in the secured folder which obviously can't get to now. Can someone point me to any Doc's or info about sending the username and password that I can embed into a method. Here is my Method so far.
Thanks
Code:
-(void)foodSection{
int location = 0;
if (nameArray == nil) {
nameArray = [[NSMutableArray alloc] init];
myURL = [NSURL URLWithString: @"http://www.sbtraveler.tv/ios/test/name.txt"];
bundeledInformation = [[NSString alloc] initWithContentsOfURL:myURL encoding:NSUTF8StringEncoding error:nil];
for (int i = 0; i < 4; i++) {
NSScanner *scanner = [NSScanner scannerWithString:bundeledInformation];
[scanner setScanLocation: location];
[scanner scanUpToString:@"\n" intoString:&tempString];
location = [scanner scanLocation];
[nameArray addObject:tempString];
NSLog(@"Item: %@", [nameArray objectAtIndex:i]);
}
}
else{
NSLog(@"Already an Array");
}
[testLable setText:bundeledInformation];
[testLable setHidden:NO];
}
Thanks