XCode Not Deploying to iOS 4.2/iPhone 3G and 3Gs | How to Build for an older iOS Version

I wanted to make an app available to iOS devices that run on 4.2 and had made all the necessary settings regarding the build. Even though everything seemed right, it still wouldn’t deploy to my test device, an iPhone 3G with iOS 4.2 on it. What happens is that XCode successfully builds the app, signs …

Continue reading

UIWebViewNavigationTypeOther – Distinguishing Click Events that Come from JavaScript OnClick Handlers in UIWebViews

Problem Description When you create hybrid apps, meaning you integrate HTML-pages into you native app via a web view and want to be in control of how click events are handled. If you don’t use any JavaScript, distingushing between events is fairly easy. The UIWebViewDelegate has a callback method called – (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType You can use …

Continue reading