I have a static variable and assign some object to this several times like this..
@interface DetailViewController ()
@end
// static varable for Entry
static DirectoryEntry *dirEntry;
@implementation DetailViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
// init entry
dirEntry = [[DirectoryEntry alloc]init];
NSLog(@"%@ ",dirEntry);
}
My question is that why it's result of NSLog showing is different than each others...?
every time when it gets loaded, it has different address then, where is the previous obj that static pointer pointed to no that it has different address which means the previous object got distorted?
Thank you in advance .