私は1つのラベルを持つユニバーサルアプリに取り組んでいます。画面を回転させると、ラベルのテキストの配置が異なります。
2 に答える
1
自動サイズ変更プロパティをUILabel
適切に設定していることを確認してください
于 2011-05-09T11:47:41.493 に答える
0
- (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;
于 2011-05-09T11:52:34.490 に答える