Hi all! I'm pretty new to Objective-C and XCode coming from a .Net background. I'm hoping you might be able to help me. Am I not able to do this:
Code:
self.catalogNumber = [tleSetStrings objectAtIndex: 1 substringWithRange:NSMakeRange(2,5)];
Basically what I'd like to do is pull the string at index 1 in the tleSetStrings array and then return characters 2 through 7 (5 char count) from that string. I was hoping to combine it into one easy line of code instead of having to pull the string from the array, store it in a temp variable and then return the substring.
Any advice is appreciated! Thanks.
Joseph