Objective C override %@ for custom objects

前端 未结 2 669
予麋鹿
予麋鹿 2021-01-04 00:25

I\'d like to override the default print function in NSLog for custom objects;

For example:

MyObject *myObject = [[MyObject alloc] init];
NSLog(@\"Thi         


        
2条回答
提交回复
热议问题