我正在实现一个 multilinqual 应用程序,我有搜索功能。在那我已经放置了uitextfiled。
当我将语言更改为阿拉伯语并正在测试应用程序时。我发现特定的 uitextfield 总是显示英文键盘而不是阿拉伯文键盘。
Phone 语言设置为 arabic ,但在 uitextfield 中它始终显示英文键盘。这是怎么回事?
下面是我的代码
NSString *strPoemName = NSLocalizedString(@"Poem Name", @"Poem Name TextField");
self.txtFieldPoemName = [[[UITextField alloc]initWithFrame:CGRectMake(10, 0, 270, 40)]autorelease];
[self.txtFieldPoemName setFont:[UIFont systemFontOfSize:14.0]];
self.txtFieldPoemName.autocapitalizationType = UITextAutocapitalizationTypeNone;
self.txtFieldPoemName.autocorrectionType = UITextAutocorrectionTypeNo;
self.txtFieldPoemName.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
self.txtFieldPoemName.placeholder = strPoemName;
self.txtFieldPoemName.delegate = self;
self.txtFieldPoemName.clearButtonMode = UITextFieldViewModeWhileEditing;
self.txtFieldPoemName.returnKeyType = UIReturnKeySearch;
[cell.contentView addSubview:self.txtFieldPoemName];