objective c - Xcode Run IBAction when app loads -
i hide window before app has loaded. know hide window can use this;
[window2 orderout:nil];
which works fine when click on button if wont hidden before or whilst application has loaded?
so sorta need ibaction on when application loads
in interface builder, can uncheck box (in window's attributes pane) says show window @ startup.
or can put line of code in app delegate's applicationwillfinishlaunching
(or perhaps applicationdidfinishlaunching
) method. (might not work in first one, i'm not sure.)
but i'd go first option, personally.
Comments
Post a Comment