Dear Sunny,
is there any chance you can make this example to work with NK 1.9 (iOS 4)?
Thanks in advance
function checkRunCount(){
var settings = new NKSettings();
Count = settings.getValueForKey("runCount");
if (Count == "(null)")
Count = 0;
settings.setValueForKey(Count + 1, "runCount");
Cuenta = 2 - Count
if(Count < 3 ){
showSheet();
}
}
function showSheet(){
// js code of NKAlertSheet
}
- (void)applicationDidFinishLaunching:(UIApplication *)application {
Nimble *nimble = [[Nimble alloc] initWithRootPage:@"main.html" window:window serial:@"xxxxx"];
[window addSubview:nimble.view];
[window makeKeyAndVisible];
[nimble release];
[UIAccelerometer sharedAccelerometer].delegate = self; // [sunny] don't forget this!
while (!_mainWebViewLoaded) { // here is where i get the error
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:1]];
}
}
[window addSubview:nimble.view];Users browsing this forum: No registered users and 1 guest