In a method, I'm having following code:
NSString* tempString = (NSString*)arg;
NSArray* notificationDetails = [tempString componentsSeparatedByString:@"##"];
NSString* tempString1 = [notificationDetails objectAtIndex:2];
.
.
.
.
.
.
NSLog(tempString1);
When I compile the code, its compiling without any error and warning. But while running (in debug mode with breakpoints) its crashing at NSLog statement. The trouble I'm seeing is while getting "[notificationDetails objectAtIndex:2];" What's the solution for this.