Uri
Uri

Reputation: 1285

Performing a task immediately when an app starts

I know there is an NSSomething() that is called automatically if it exists when the app starts and can be used to set for example the text of a label.

I just can remember the name of that function.

help?

Thanks!

Upvotes: 0

Views: 111

Answers (2)

Uri
Uri

Reputation: 1285

The answer is awakeFromNib, example:

- (void)awakeFromNib
{
   DoSomething();
}

Upvotes: 1

Mark Rushakoff
Mark Rushakoff

Reputation: 258188

applicationDidFinishLaunching or application:didFinishLaunchingWithOptions: is probably what you're looking for.

Upvotes: 4

Related Questions