OS X version of bringSubviewToFront:?

前端 未结 6 623
我在风中等你
我在风中等你 2021-02-08 19:07

I need to replicate the function of bringSubviewToFront: on the iPhone, but I am programming on the Mac. How can this be done?

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-08 19:36

    Sibling views that overlap can be hard to make work right in AppKit—it was completely unsupported for a long time. Consider making them CALayers instead. As a bonus, you may be able to reuse this code in your iOS version.

提交回复
热议问题