user198725878
user198725878

Reputation: 6386

Not displaying the arabic keyboard

I am implementing a multilinqual application, there i have search funtionlity. In that i have placed uitextfiled.

When i change the language to arabic , and was testing the app. i found that particular uitextfield is always showing the english keyboard and not the arabic one.

The Phone language is set to arabic , but in the uitextfield it always shows the english keyboard. how is this happening?

below is my code

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];

Upvotes: 3

Views: 1107

Answers (2)

Nailer
Nailer

Reputation: 2426

Just in case someone stumbles upon this problem again:

This is caused by setting the UITextField keyboardType property to UIKeyboardTypeASCIICapable instead of UIKeyboardTypeDefault.

Upvotes: 3

Akshay Shah
Akshay Shah

Reputation: 1120

Just make sure you do have set the value for "Poem Name" in Arabic localized Strings. May be because of that it would be showing only english keyboard.

Upvotes: 0

Related Questions