[iOS Programming]解決更新到Xcode8,iOS 10後,NSLog輸出問題

最近手機更新到又新又潮的 iOS 10,

卻離奇發生 NSLog 輸出的資訊不完整、或在模擬器無法輸出的問題,

要解決該問題,只要加上這一行:

#define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

就可以像之前一樣正常輸出,不過目前似乎只是個應急的辦法,

後續還需再關注。


Originally published at likeabossapp.com on September 23, 2016.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.