I want to do a simple thing - download the start file with a name other than index.html , based on the 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 not find it. Is it really impossible to do? Because it is easy to do in Android.
edit: I found this line:
NSURL *appURL = [NSURL fileURLWithPath:[PhoneGapDelegate pathForResource:@"index.html"]];
in PhoneGapDelegate.m needs to be changed with a different file name, but how can I change it at runtime?
source share