Hi All,
I am getting a strange error.
NSString *filePath = [[NSBundle mainBundle] pathForResource😡"direction" ofType😡"html"];
// NSString *params = [NSString stringWithFormat😡"?dirstr=%@", @"from: 500 Memorial Drive, Cambridge, MA to: 4 Yawkey Way, Boston, MA 02215 (Fenway Park)"/*directioncommand*/];
// filePath = [filePath stringByAppendingString😛arams];
NSString *fileURLString = [[NSURL fileURLWithPath:filePath] absoluteString];
NSString *params = [NSString stringWithFormat😡"?dirstr=%@", @"from: 500 Memorial Drive, Cambridge, MA to: 4 Yawkey Way, Boston, MA 02215 (Fenway Park)"/*directioncommand*/];
fileURLString = [fileURLString stringByAppendingString😛arams];
NSURL *fileURL = [NSURL URLWithString:fileURLString];
I am trying to for an url and append parameter to it. unfortunately I am getting url as nil. Is there any way i can see the error ? If i copy paste the string from nslog to the browser it works fine.
thanks and regards
ch
I am getting a strange error.
NSString *filePath = [[NSBundle mainBundle] pathForResource😡"direction" ofType😡"html"];
// NSString *params = [NSString stringWithFormat😡"?dirstr=%@", @"from: 500 Memorial Drive, Cambridge, MA to: 4 Yawkey Way, Boston, MA 02215 (Fenway Park)"/*directioncommand*/];
// filePath = [filePath stringByAppendingString😛arams];
NSString *fileURLString = [[NSURL fileURLWithPath:filePath] absoluteString];
NSString *params = [NSString stringWithFormat😡"?dirstr=%@", @"from: 500 Memorial Drive, Cambridge, MA to: 4 Yawkey Way, Boston, MA 02215 (Fenway Park)"/*directioncommand*/];
fileURLString = [fileURLString stringByAppendingString😛arams];
NSURL *fileURL = [NSURL URLWithString:fileURLString];
I am trying to for an url and append parameter to it. unfortunately I am getting url as nil. Is there any way i can see the error ? If i copy paste the string from nslog to the browser it works fine.
thanks and regards
ch