Difference between NSLog and Printf statement for ObjectiveC

后端 未结 4 2117
你的背包
你的背包 2020-12-18 18:52

I want to know about the difference between the NSLog and the Printf statement in Objective-C (for application purpose...!)

Why do all deve

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-18 19:28

    From a developer point of view, the biggest difference is that NSLog supports Objective-C object types via the %@ format. NSLog also writes to stderr, while printf writes to stdout.

提交回复
热议问题