I just want to open a webpage providing an URL. My code is:
void openURL(char const *message)
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:message]];
}
And the error I get is:
cannot initialize a parameter of type 'NSString *' with an lvalue of type 'const char *'
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:message]];
I am not familiar with Objective-C nor learning it. I just need to use this simple code in a project.