我正在實施一個multilinqual應用程序,我有搜索funtionlity。在那裏我已經放置了uitextfiled。不顯示阿拉伯語鍵盤
當我將語言更改爲阿拉伯語,並正在測試應用程序。我發現特定的uitextfield總是顯示英文鍵盤而不是阿拉伯文鍵盤。
電話語言設置爲阿拉伯語,但在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];
檢查此[鏈接](http://iphone.appstorm.net引起/ how-to/change-your-keyboard-or-display-language-in-ios /) –
[Link](http://stackoverflow.com/questions/330542/setting-the-iphone-keyboard-language)say你不能實際地設置鍵盤語言。 – HDdeveloper