¥È¥Ã¥× ºÇ¿· Äɵ­

¥µ¥¤¥é¥¹¤ÎËÜê


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)];
ËÜÆü¤Î¥ê¥ó¥¯¸µ | 71 | 20 | 13 | 7 | 7 | 7 | 5 | 4 | 4 | 3 |