NSString * str = @"123"; char buf[20]; [str getCString:buf maxLength:20 encoding:NSASCIIStringEncoding]; NSLog(@"%s",buf);
时间: 2024-10-25 21:07:30
NSString * str = @"123"; char buf[20]; [str getCString:buf maxLength:20 encoding:NSASCIIStringEncoding]; NSLog(@"%s",buf);