반응형
- (NSString *)stringByReplacingOccurrencesOfString:(NSString *)target
withString:(NSString *)replacement
NSString *str = @"This is a string";
str = [str stringByReplacingOccurrencesOfString:@"string" withString:@"duck"];
반응형
'Objective-c' 카테고리의 다른 글
| NSString과 NSMutableString (0) | 2014.04.25 |
|---|---|
| AFNetworking download progressing (0) | 2014.04.25 |
| NSTimer (0) | 2014.04.25 |
| 코어 애니메이션 튜토리얼 페이지 (Core Animation Tutorial page) (0) | 2014.04.25 |
| 현재 앱을 사용자 로그인 아이템 등록하기 (0) | 2014.04.20 |
댓글