I'm working on an app that's making use of a URL Bar and WebView. It's all but done, however there are two things left to finish before it's user-ready.
The first is that the address field requires the user to type in "http://" with their URL. It's not a big deal, but I would prefer to not require users to do so, as it could lead to confusion. How can I detect and automatically add "http://" to the URL text in the event that it's not present?
Next, I want to add a connection error. In the event that the load request can't be completed, I want the user to know it - not just sit there watching the activity indicator spin. How can I add an error for a lack of internet connection?
I'd appreciate any help on these issues!
The first is that the address field requires the user to type in "http://" with their URL. It's not a big deal, but I would prefer to not require users to do so, as it could lead to confusion. How can I detect and automatically add "http://" to the URL text in the event that it's not present?
Next, I want to add a connection error. In the event that the load request can't be completed, I want the user to know it - not just sit there watching the activity indicator spin. How can I add an error for a lack of internet connection?
I'd appreciate any help on these issues!