Following example prints the value of NSString object on the console using the NSLog function which can be used to debug the iPhone application.
@interface printString : NSObject
The implementation class code is as follows:
string= @"Welcome in Programming";
NSLog(@"process Name: %@ Process ID: %d",string);
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.