views:

33

answers:

1

I'm new to iPhone development and Objective-C. Using the ZBar SDK I've developed a basic app which scans a QR image from the photo album and outputs what it translates to.

I want to know if there is a way to take this output, determine whether it is a URL and if so open it in a web browser.

Thanks Zac

+3  A: 

NSURL's URLWithString returns nil if the URL passed is not valid. So, you can just check the return value to determine if the URL is valid.

dkk
Thanks for pointing me in the right direction :) Got it sorted now, need a lot more practice with Objective C though! haha
Zachary Markham