Hey All,
I am developing an app and the user has to enter the URL to access the information in the app. If the user forgets to enter the URL in a proper way, I want to prepend http:// and append soap.php to the URL text field. Is there any validation to be done for this or can I append using string methods? Also is there a way to allow HTTPS URL's..does it support or should I perform any validation for this too..please help me..
EDIT:
if ([[serverurlField.text substringToIndex:0]isEqualToString:@"http://"]) {
syncDelegateImpl.serverURL = serverurlField.text;
}
else {
syncDelegateImpl.serverURL = [NSString stringWithFormat:@"http:// %@",serverurlField.text,@"soap.php"];
}