Je travaille actuellement dans l'application de réalité d'augmentation iphone dans laquelle j'ai ajouté poi sur la vue caméra, mais mon application est crash et son exception de lancement (CALayer NAN 15). Voici le code que j'utilise.wikitude app crash (ajout de poi problème) iphone 4.0
wikitudeAR = [[WikitudeARViewController alloc] initWithDelegate:self applicationPackage:nil applicationKey:nil; applicationName:nil developerName:nil];
- (void) verificationDidSucceed {
id appDelegate=[[UIApplication sharedApplication]delegate];
UIWindow *window = [appDelegate window];
[window addSubview:[wikitudeAR start];
}
- (void) verificationDidFail {
}
- (void) didUpdateToLocation: (CLLocation*) newLocation
fromLocation: (CLLocation*) oldLocation {
}
-(void) APIFinishedLoading
{ //arr is current location data
NSMutableArray *addPOIData=[[NSMutableArray alloc]init];
for(int i=0;i<[arr count];i++)
{
NSDictionary *dict= [arr objectAtIndex:i];
WTPoi* poi = [[WTPoi alloc] initWithName:currentMapLocation.locationTitle AndLatitude:[[dict objectforKey:@"lat"]doubleValue]AndLongitude:[[dict objectforKey:@"long"]doubleValue]];
poi.icon = @"http://img560.imageshack.us/img560/9931/parking.png";
poi.shortDescription = @"Open Monday to Friday 6:30 to 7pm. Tariff plan range from £5";
poi.thumbnail = @"http://img560.imageshack.us/img560/9931/parking.png";
[addPOIData addObject: poi];
[poi release];
}
[[WikitudeARViewController sharedInstance] addPOIs: addPOIData];
[addPOIData release];
}
aidez-moi s'il vous plaît au sujet de même. merci d'avance.