【发布时间】:2015-10-09 10:22:50
【问题描述】:
我需要将 NSProgressIndicator 旋转 90 度。
当我使用以下代码时:
[self.progressIndicator1 setWantsLayer:NO];
[self.progressIndicator1 setFrameCenterRotation:90];
[self.progressIndicator1 setMinValue:0];
[self.progressIndicator1 setMaxValue:100];
[self.progressIndicator1 setDoubleValue:50];
[self.progressIndicator1 displayIfNeeded];
[self.progressIndicator2 setWantsLayer:NO];
[self.progressIndicator2 setFrameCenterRotation:90];
[self.progressIndicator2 displayIfNeeded];
此代码在 OS X Yosemite 上运行良好,但在 OS X El Capitan 上不运行。
我该如何解决?
【问题讨论】:
标签: cocoa osx-elcapitan nsprogressindicator