Search code examples
iphoneiosxcodeipadibaction

How to have IBAction happen on start of iPad app


I have an IBAction command in my iPad app that I would like to invoke when the app first starts.

What code can I use to do this? Thanks!


Solution

  • Just try the viewDidLoad method of your firstViewController to call your method using [self METHODNAME:nil];

    This will call the method on application start automatically

    Happy Coding :)