Get last 2 characters of a string? April 26, 2023 by Tarik NSString *code = [state substringFromIndex: [state length] - 2]; should do it