This example shows you how to print the value of NSInteger object with the help of NSLog function.
This example shows you how to print the value of NSInteger object with the help of NSLog function.The following code example prints the value of NSInteger object using the NSLog function.
//
// PrintNSInteger.h
// DataTypes
//
#import <Foundation/Foundation.h>
@interface PrintNSInteger : NSObject
{
NSInteger *mnsinteger;
}
-(void) print;
@end
The implementation of the PrintNSInteger class is as follows:
//
// PrintNSInteger.m
// DataTypes
//
#import "PrintNSInteger.h"
@implementation PrintNSInteger
-(void) print
{
NSLog(@"NSInteger value :%@", mnsinteger);
}
@end