Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Xcode 编程新手,我有以下问题:
如何调整 NSScrollView 中视图的位置?
我希望我的 WKDDrawView 位于左上角,我只是不知道该怎么做。
默认情况下,窗口坐标系的中心位于左下角。
您应该覆盖您的isFlipped:方法WKDDrawView以返回YES。
isFlipped:
WKDDrawView
YES