Tips & Tutorials Substrings from NSString Aasim Naseem, March 13, 2012April 27, 2024 Hello iOS geeks … Here is a small tip for getting a substring from NSString; NSString class provide following methods for splitting a string; [sourcecode lang=”objc”] – (NSString *)substringFromIndex:(NSUInteger)from; – (NSString *)substringToIndex:(NSUInteger)to; – (NSString *)substringWithRange:(NSRange)range; – (NSRange)rangeOfString:(NSString *)<em>aString;</em> [/sourcecode] Following code will demonstrate itself; Aasim NaseemI’m an engineer by profession, a blogger and a… Continue Reading