Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.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
Objective c 旋转标签_Objective C_Xcode_Macos_Interface Builder_Label - Fatal编程技术网

Objective c 旋转标签

Objective c 旋转标签,objective-c,xcode,macos,interface-builder,label,Objective C,Xcode,Macos,Interface Builder,Label,我需要在IB中旋转可编辑标签-我知道您不能在Interface Builder中旋转。但是,有人知道如何通过xcode实现这一点吗?希望这不会太让人望而生畏,因为我对可可还不熟悉:/任何帮助都将不胜感激 Zach请参见NSView的-setBoundsRotation方法。首先需要在类文件中导入quartz framework,然后需要使用layer属性旋转标签NSTextField继承自NSView,以便使用该属性。

我需要在IB中旋转可编辑标签-我知道您不能在Interface Builder中旋转。但是,有人知道如何通过xcode实现这一点吗?希望这不会太让人望而生畏,因为我对可可还不熟悉:/任何帮助都将不胜感激


Zach

请参见
NSView
的-
setBoundsRotation
方法。

首先需要在类文件中导入quartz framework,然后需要使用layer属性旋转标签
NSTextField
继承自
NSView
,以便使用该属性。