i've started iOS developing 2 days ago so i simply know nothing.so i am creating a basic browser. i already managed to make so that if the url is "facebook.com" it changes to "http://facebook.com" but when typing "facebook" the app just crashes. i was not able to check if there is "." in the input. i tried
for(int i=0; i<[urlString length]; i++){
if([urlString characterAtIndex: i] == "."){ // also tried == @"." and isEqual: "."
break;
}
else {
urlString = [[NSString alloc] initWithFormat: @"%.com", urlString"];
}
}
this doesnot seem to work. any help?