Code:
- (void)viewDidLoad {
NSString *nameString = string; if ([nameString length] == 0) {
NSDate *now = [[NSDate alloc] init];
//Format the date output-er
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"M/d/yyyy"];
NSString *string = [dateFormatter stringFromDate:now];
[now release];
}
NSString *urlAddress = @"https://www.website.com/mobile/index.aspx?pageaction=ViewSinglePublic&LinkID=5969&ModuleID=40&StartDate=%@", string;
//^^^^^^THIS IS WHERE THE ERROR OCCURS ^^^^^^^^
//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];
//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
//Load the request in the UIWebView.
[webView loadRequest:requestObj];
}
keeps on giving me the error: "Statistically allocated instance of Objective-C class 'NSString'". Any suggestions?