I am trying to check to see if a string that I am going to use as URL starts with http. The way I am trying to check right now doesn\'t seem to be working. Here is my code:<
I like to use this method:
if ([[temp substringToIndex:4] isEqualToString:@"http"]) { //starts with http }
or even easier:
if ([temp hasPrefix:@"http"]) { //do your stuff }