Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/110.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
Ios 适用于ipad和iphone的UIlabel文本对齐_Ios_Uilabel_Universal - Fatal编程技术网

Ios 适用于ipad和iphone的UIlabel文本对齐

Ios 适用于ipad和iphone的UIlabel文本对齐,ios,uilabel,universal,Ios,Uilabel,Universal,我正在开发一款有一个标签的通用应用程序。当我旋转屏幕时,标签文本对齐方式会发生变化。请确保正确设置了UILabel的自动调整大小属性。您可以发布更多信息吗?截图还是类似的?它们有何不同?你手边有密码吗?阿克塞尔我不能发布屏幕截图和密码 - (void) handleRotations:(UIRotationGestureRecognizer *)paramSender{ if (self.helloWorldLabel == nil){ } return; /* Take the previo

我正在开发一款有一个标签的通用应用程序。当我旋转屏幕时,标签文本对齐方式会发生变化。

请确保正确设置了
UILabel
的自动调整大小属性。

您可以发布更多信息吗?截图还是类似的?它们有何不同?你手边有密码吗?阿克塞尔我不能发布屏幕截图和密码
- (void) handleRotations:(UIRotationGestureRecognizer *)paramSender{
 if (self.helloWorldLabel == nil){
}
return;
/* Take the previous rotation and add the current rotation to it */
self.helloWorldLabel.transform = CGAffineTransformMakeRotation(self.rotationAngleInRadians +
paramSender.rotation);
/* At the end of the rotation, keep the angle for later use */ if (paramSender.state == UIGestureRecognizerStateEnded){
}
self.rotationAngleInRadians += paramSender.rotation;