I have an UITextField were you need to enter a city name. That city name is linked to an url: For example mywebsite/oslo

But, when I enter New York than is it not an correct url. mywebsite/new york
It needs to be this <http://www.website.com/New-York> 
How can I make a UITextField that replaces spaces with: --> -

Thanks for your help! 

```
- (void)configureControls {

[self.activityIndicator stopAnimating];

[UIView animateWithDuration:1.5 animations:^{

    if (self.weatherModel.lastLoadFailed) {
        self.locationTextField.enabled = YES;
        self.saveButton.hidden = NO;
        self.activityIndicator.hidden = YES;
        return;
    }

    self.settingsModel.location = self.locationTextField.text;

    PWForecastModel *forecast = self.weatherModel.sevenDayForecast[0];
    NSString *backgroundName = [PWHelper backgroundFileNameForConditionCode:forecast.conditions.conditionCode asDaytime:[[NSDate date] isDayTime]];
    if (![[NSDate date] isDayTime]) {
        [self styleControlsForDarkBackground];
    }
    self.backgroundImageView.image = [UIImage imageNamed:backgroundName];
    self.locationLabel.text = [NSString stringWithFormat:@"%@",self.weatherModel.cityName];
}];

```

}