Peter B
Peter B

Reputation: 169

objective c start IBAction on application load/start automaticly

I have an IPhone app and want it to kick off an IBAction after it loads automaticly.

I have it set up for a button now. I am looking for some code to make this automatic on start up and then still use the button while in the application.

Thanks for the help.

Upvotes: 0

Views: 517

Answers (1)

DarkDust
DarkDust

Reputation: 92316

An IBAction is just a normal method and you can just call it in a awakeFromNIB, viewDidLoad, applicationDidFinishLaunching: or similar method.

Upvotes: 2

Related Questions