I use [webView shouldStartLoadWithRequest: navigationType:] to control the user navigation in a UIWebView. I was comparing the string with "isEqualToString" method like:
NSString *requestString = [[request URL] absoluteString];
if ([requestString isEqualToString:@"http://www.myComapnyWeb.com"]) return YES;
else return NO;
When the device was in IOS 4.3 this was working fine. Once the device got upgraded to IOS 5, (5.1.1 exactly), the above logic failed. With some NSLog, I noticed that the URL is returned all in lower case, (mycompanyweb instead of myCompanyWeb) and hence the above string comparison fails.
I can fix it by changing the comparison with lowercaseString method. Want to find out if anyone else experienced this. Any other solution? And in future, do we need to expect such changes?