I am trying to validate a URL with this method:
Code:
- (BOOL) validateUrl: (NSString *) candidate { NSString *urlRegEx= @\"((https?|ftp|gop
NSURL * url = [NSURL URLWithString:@"http://www.google.com"];
BOOL isValid = [UIApplication.sharedApplication canOpenURL:url];