How to capture last 4 characters from NSString
问题 I am accepting an NSString of random size from a UITextField and passing it over to a method that I am creating that will capture only the last 4 characters entered in the string . I have looked through NSString Class Reference library and the only real option I have found that looks like it will do what I want it to is - (void)getCharacters:(unichar *)buffer range:(NSRange)aRange I have used this once before but with static parameters 'that do not change', But for this implementation I am