阅读背景:

如何将字符串/数字附加到字符串?

来源:互联网 

I have a function

我有一个功能

 -(void) generateLevelFromPlist:(int)currentLevel{
    NSString *mainPath = [[NSBundle mainBundle] bundlePath];
    itemPositionPlistLocation = [mainPath stringByAppendingPathComponent:@"levelconfig.plist"];
    NSDictionary * itemPositions = [[NSDictionary alloc] initWithContentsOfFile:itemPositionPlistLocation];
    NSNumber *xVal = [[[[itemPositions objectForKey:@"level + STRING/NUMBER"]objectForKey:@"hexposition"]objectForKey:@"hexagon1"]objectForKey:@"xVal"];
    int generatedXVal = [xVal integerValue];
    NSLog(@"%d", generatedXVal);
    NSLog(@"%@", itemPositionPlistLocation);



    }
 -(void) generate



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: