Right now project is using MainWindow.xib in App delegate class as main nib file. It has this code in main.m file
int main(int argc, char *argv[]) {
NSAutorelea
Replace the last argument (nil
) of the UIApplicationMain()
function with the name of the app delegate class. It's generally @"AppDelegate"
by default.
In case others find this as I have, the code you actually want to replace nil
with is NSStringFromClass([AppDelegate class])
where you would replace AppDelegate
with your classname if you have named yours differently.
Also, don't forget to #import "AppDelegate.h"