Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
NSMutable Example
//gcc 5.0.4 #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSMutableString *name = [NSMutableString stringWithCapacity:29]; [name setString:@"abc def ghi"]; NSLog (@"%@",name); [name setString:@"ghi abc def"]; NSLog (@"%@",name); [name replaceCharactersInRange:NSMakeRange(0,3) withString:@"jkl"]; NSLog (@"%@",name); [name deleteCharactersInRange:NSMakeRange(9,2)]; NSLog (@"%@",name); [pool drain]; return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
string divison
NSMutableStringProgram
NSNumber
array
enheritance
Inheritance Example
HAL is IBM
objective c fibonanci
geomatric operations in objective c
Program 2.2
Please log in to post a comment.