Run Code
|
API
|
Code Wall
|
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
Obj C Program Structure
Sum Example
bookinheritence
emp class
NSMutableStringProgram
Objective C Class and Object example
geomatric operations in objective c
primitive datatypes objective c
Az Flights Optimization
Obj-C_Program_Structure_1