如何克服CoreAnimation警告,同时实现在iPhone应用程序中的Wikitude API?

2019-11-05 01:28发布

我用我的iPhone应用程序的Wikitude API。 但是,在运行应用程序我得到以下警告,并在此警告的未来我不能够触摸屏幕上的任何兴趣点。 该警告是“CoreAnimation:忽略异常:CALayer的位置包含楠:[楠楠]”请建议我去克服这样的警告。

我使用下面的代码

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];
}

提前致谢

Answer 1:

请尝试新版本的Wikitude iPhone API的应该解决的问题描述。 你可以从这里下载http://www.wikitude.org/developers

欢呼声中,尼古拉斯·



Answer 2:

我也有以下的问题我一个似乎发生后,我一直在重新安装到我的iPhone测试装置的应用...

请尝试以下操作:

极限名约25个字符的限制描述为250个字符图标,缩略图要小的50x50去在60X60引起了我的情况下,同样的错误....

例::

WTPoi* poi25 = [[WTPoi alloc] initWithName:@"Car park: amwell street" AndLatitude:51.52899377167962 AndLongitude:-0.11010333895683289]; 
poi25.icon = @"http://img560.imageshack.us/img560/9931/parking.png";
poi25.shortDescription = @"Open Monday to Friday 6:30 to 7pm. Tariff plan range from £5";
poi25.thumbnail = @"http://img560.imageshack.us/img560/9931/parking.png";


文章来源: How to overcome CoreAnimation warning while Implementing the Wikitude API in iPhone application?