开发者

Launch method when window (and its views) appear in Cocoa

I have a multi Window (A,B,C) application. User can close Window A(transparent and buttonless) by pressing a specific button on interface, at some point he can reopen it by click another button.

It works great, by i need reset some values when window is opene开发者_开发知识库d again.

I know that awakeFromNib is called from window and from view but only once, it doesn't be call again at window reopen. Is there a method that Window (and Views ?) call when window reopen ? something like viewWDidAppear for IOS ?


You could register for the UIWindowDidBecomeVisibleNotification for that.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜