Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Even and Odd numbers by Erick Benites
Objective C NSSet Declaration
bookinheritence
represent value
find maximum in objective c
Etudiant.h
book
asdfghjk
01 Hola mundo
Func Var and Ops ObjC
stackse - search stackoverflow differently
Please log in to post a comment.