¥µ¥¤¥é¥¹¤ÎËÜê
2010-06-22
[Objective-C] ʸ»úÎóÁàºî´ØÏ¢
// ʸ»úÎóÏ¢·ë NSString *str1 = [NSString stringWithString:@"foo"]; NSString *str2 = [NSString stringWithString:@"bar"]; NSString *kekka = [str1 stringByAppendingString:str2]; // ºÇ¸å¤Î°ìʸ»úºï½ü NSMutableString *strOrg = [NSMutableString stringWithString:@"hogehoge"]; NSInteger len = [strOrg length]; [strOrg deleteCharactersInRange:NSMakeRange(len-1,1)];