Back to Blog

Fix for iPhone app crash when loading an external link in UIWebView

August 11, 2011

By Matt Mombrea
No Comments

If you’re building an iOS app and using a UIWebView control to load web pages or HTML, you may have encountered an issue where the app seems to crash randomly while loading the HTML. We found that the crashes were more frequent when loading external web pages within our apps. This was a difficult issue to debug as you don’t get much information out of the crash other than a BAD_ACCESS message.

It turns out that the issue is related to a bug in the iOS SDK (at least pre SDK 5.0). If you have enabled any of the following you may be subject to this bug which we suspect is a general parsing error:

  • Phone Number Detection
  • Links Detection
  • Events Detection
  • Addresses Detection

To correct this issue and save your sanity, disable all of these features as shown below:

 

Matt Mombrea

Matt Mombrea

Matt is a longtime entrepreneur and software engineer. He also sits on the board of Computer Science at SUNY Fredonia. Born and raised in Buffalo, Matt is passionate about building and maintaining great businesses in Buffalo. Apart from leading Cypress North, Matt architects our company’s datacenter, engineers dozens of custom applications, and directs the rest of the development team.

See Matt's Most Recent Posts

Share this post

Leave a Reply

Search our blog

Start A Project

Categories

What's next?

Well...you might like one of these

Article

My First Semester Teaching: CSIT 330...

Towards the end of last summer, in the middle of the work...

Read article

Article

Firing Up Bing Ads? Crucial Differences...

Does Anyone Even Use Bing? As digital marketers we tend to...

Read article

Article

The Basics on How to Use Facebook For...

I just posted a new article  Search Engine Land...

Read article