In this section you will learn how you can print the value of NSString using the NSLog function.
In the following code example we will show you how you can easily output the value of NSString variable using the NSLog function.
@interface printString : NSObject
and the code of implementation class 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.