Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Mac OS X Development Forums > Mac OS X Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-30-2010, 11:49 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 566
Noise is on a distinguished road
Default Removing the need to add "http://" in front of URL for WebView?

I'm working on an app that makes use of a URL textfield, but as it stands, it requires the user to add "http://" to make anything happen.

What do I need to do to have the app automatically add http:// in front of a load request?
Noise is offline   Reply With Quote
Old 12-30-2010, 12:44 PM   #2 (permalink)
Daddy Cool
iPhone Dev SDK Supporter
 
MarkC's Avatar
 
Join Date: Mar 2009
Location: Yorkshire, England
Age: 100
Posts: 1,616
MarkC is on a distinguished road
Default

I'd just concat the strings together.
MarkC is offline   Reply With Quote
Old 12-30-2010, 11:52 PM   #3 (permalink)
Beast Mode
 
Join Date: Dec 2008
Age: 21
Posts: 1,971
Bertrand21 is on a distinguished road
Default

Quote:
Originally Posted by Noise View Post
I'm working on an app that makes use of a URL textfield, but as it stands, it requires the user to add "http://" to make anything happen.

What do I need to do to have the app automatically add http:// in front of a load request?
Search for "http://" if it does not exists just add it to the beginning and load that string in the web view
__________________
Haters gonna Hate
Likers gonna Like
Bertrand21 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 459
17 members and 442 guests
alexeir, David-T, Dj_kades, foslock, iAppDeveloper, ilmman, j.b.rajesh@gmail.com, jeroenkeij, mer10, mkjarred, Music Man, myach, pipposanta, QuantumDoja, robsmy, sacha1996, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:32 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0