小编Kha*_*aus的帖子

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; 
}
Run Code Online (Sandbox Code Playgroud)

iphone objective-c uitextview ios inputview

8
推荐指数
1
解决办法
8780
查看次数

创建我自己的iphone Photolibrary

我想创建我自己的照片库,从我的图书馆获取图像并将它们保存到我的图书馆并询问是否要更改...是否会感谢任何帮助

问候

·高斯

iphone objective-c ios ios5

0
推荐指数
1
解决办法
458
查看次数

标签 统计

ios ×2

iphone ×2

objective-c ×2

inputview ×1

ios5 ×1

uitextview ×1