0
我在此代碼的最後一行收到錯誤消息Incompatible integer to pointer conversion sending 'unichar' (aka 'unsigned short') to parameter of type 'NSString *'
。characterAtIndex轉換爲NSString
NSMutableString *sp = [[NSMutableString alloc] initWithString:@" "];
NSArray *[email protected][@[sp, sp, sp, sp], @[sp, sp, sp, sp]];
NSString* suits = @"NESW";
[deals[0][3] replaceCharactersInRange:NSMakeRange(1, 1) withString:[suits characterAtIndex:2]];