I want to do a simple thing – load a start file named other than index.html based on a condition in Xcode 4.2 and PhoneGap 1.0.0. I found that the answer to this question is in the FAQ for iPhone PhoneGap, but I still can’t find it. Is this really impossible to do? Because it is easily done in Android.
edit: I found that this line:
NSURL *appURL = [NSURL fileURLWithPath:[PhoneGapDelegate pathForResource:@"index.html"]];
in PhoneGapDelegate.m must be modified with another file name, but how could I change it at runtime?
You need to add the following code to your AppDelegate.m