Арабский текст UItextView выровнен по правому краю

Используя мою пользовательскую арабскую клавиатуру в UItextView inputView, я заполняю свой textView арабским текстом, но не могу выровнять написанный текст по правому краю.... Нужна помощь, чтобы выровнять текст по правому краю.

-(BOOL)textViewShouldBeginEditing:(UITextView *)textView{

 if(showCustomKeyboard==NO){
 [textView resignFirstResponder];
 textView.inputView=nil;
 [textView becomeFirstResponder];
 return YES; 
}

 else{
     [textView resignFirstResponder];
     if(customKeyboard==nil){
     customKeyboard=[[CustomKeyboard alloc] initWithFrame:CGRectMake(0, 264, 320, 216)];
     [customKeyboard setDelegate:self];
 } 
 if([[UIApplication sharedApplication] respondsToSelector:@selector(inputView)]){
     if (textView.inputView == nil) {
           textView.inputView = customKeyboard;
           [textView becomeFirstResponder];
     }
 } 
    self.customKeyboard.currentField=textView;
    [textView becomeFirstResponder];
 }
 return YES; 
}
8
задан Parth Bhatt 26 March 2012 в 12:25
поделиться

0 ответов