I want to set auto value for nsstring (like c constructors). Please look below:
NSLog(@"%@",[[currentNode element] class]);
NSLog(@"%@",[currentNode element]);
NSLog(@"hi!!!!");
Console:
2012-08-02 14:43:46.958 Test[5070:207] NSCFString
2012-08-02 14:43:46.961 Test[5070:207] hi!!!!
Second NSlog is not working because of [currentNode element] is empty! How can i set a value like @”—–” this? I tried to override ‘init’ but it didn’t work.
it might help you:
or this