Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
string divison
//gcc 4.8.4 #import <Foundation/Foundation.h> int main(void) { //it is like substr() method in php NSString *name = @"Parth Ganatra"; // from strart to index NSLog(@"%@", [name substringToIndex:4]); // from index to end NSLog(@"%@", [name substringFromIndex:6]); // from index to from to index it means indexing start with from NSRange range = NSMakeRange(6, 7); NSLog(@"%@", [name substringWithRange:range]); }
run
|
edit
|
history
|
help
0
basic arithmatic Opreation in objective C
Simple Arithmetic Operations in Objective C
Strings
basic arithmatic Opreation in objective C
Interface implementation
book
Book NSSet
NSString & MutableNSString Examples in one
geomatric operations in objective c
find maximum in objective c