Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 将UITableView转换为支持从右向左的语言_Iphone_Objective C_Ios_Xcode_Cocoa Touch - Fatal编程技术网

Iphone 将UITableView转换为支持从右向左的语言

Iphone 将UITableView转换为支持从右向左的语言,iphone,objective-c,ios,xcode,cocoa-touch,Iphone,Objective C,Ios,Xcode,Cocoa Touch,我有一个UITableView,我想对它进行一些转换,以便它支持从右到左的语言,我所做的是: for(UITableViewCell *cell in self.RSSNewsTableView.visibleCells) { cell.transform = CGAffineTransformMakeRotation(180*0.0174532925); cell.textLabel.transform = CGAffineTransformMak

我有一个
UITableView
,我想对它进行一些转换,以便它支持从右到左的语言,我所做的是:

       for(UITableViewCell *cell in self.RSSNewsTableView.visibleCells) {
        cell.transform = CGAffineTransformMakeRotation(180*0.0174532925);
        cell.textLabel.transform = CGAffineTransformMakeRotation(180*0.0174532925);       
        cell.detailTextLabel.transform = CGAffineTransformMakeRotation(-M_PI);             
        cell.textLabel.textAlignment = UITextAlignmentRight;
       // cell.transform = CGAffineTransformMakeRotation(2*M_PI);

    }
我得到的是:

       for(UITableViewCell *cell in self.RSSNewsTableView.visibleCells) {
        cell.transform = CGAffineTransformMakeRotation(180*0.0174532925);
        cell.textLabel.transform = CGAffineTransformMakeRotation(180*0.0174532925);       
        cell.detailTextLabel.transform = CGAffineTransformMakeRotation(-M_PI);             
        cell.textLabel.textAlignment = UITextAlignmentRight;
       // cell.transform = CGAffineTransformMakeRotation(2*M_PI);

    }


detailTextLabel
的正确转换是什么,这样它就可以正确地放置在单元格的
textLabel
下?

我个人不会用仿射转换实现这一点,只需创建新标签和自定义视图,并使用autoresizingmask自己定位它们

我用阿拉伯语看了看我的iPhone,默认导航仍然在左边,所以没有必要在屏幕截图中打开绿色的显示指示灯