开发者

HIViewSetZOrder equivalent in cocoa

What is the equivalent of carbon fun开发者_如何学Cction HIViewSetZOrder in cocoa ?

Thanks.


You should rely only on view hierarchy (parents,childs) to layer your views. Overlapping views are a bad idea.

There is a - (void)addSubview:(NSView *)aView positioned:(NSWindowOrderingMode)place relativeTo:(NSView *)otherView method but in order to layer your views you'll have to remove/add them again.

Alternatives are to use NSWindow or Core Animation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜