Не удается установить тип клавиатуры программно-ios
У меня возникли проблемы с настройкой UIKeyboardtype в моем приложении.
Это 2 строки, которые не отражаются в моем приложении.
_firstTextFieldWebsite.keyboardType = UIKeyboardTypeURL;
_firstTextFieldWebsite.keyboardType = UITextAutocapitalizationTypeNone;
Код находится в этом контексте. Все остальные настройки, которые вы видите, работают.
_firstTextFieldWebsite = [[UITextField alloc] init];
_firstTextFieldWebsite.frame = CGRectMake(20, 73, 280, 30);
_firstTextFieldWebsite.placeholder = @"Enter the url here";
_firstTextFieldWebsite.borderStyle = UITextBorderStyleBezel;
_firstTextFieldWebsite.backgroundColor = [UIColor whiteColor];
_firstTextFieldWebsite.delegate = self;
_firstTextFieldWebsite.alpha = 1.0;
//[_firstTextFieldWebsite setKeyboardType:UIKeyboardTypeURL];
_firstTextFieldWebsite.keyboardType = UIKeyboardTypeURL;
_firstTextFieldWebsite.keyboardType = UITextAutocapitalizationTypeNone;
[self.view addSubview:_firstTextFieldWebsite];
Что я упускаю или делаю неправильно? Я не использую раскадровку здесь, и мое приложение основано на минимуме IOS 6.