简体   繁体   中英

Print out NSDictionary key - value pair format?

Wants to print NSDictioanary like key = value, key2 = value2, key3 = value3

Is it possible inline way? Value should have apostrof if it is string.

In Swift:

print(nameOfYourDictionary)

In Objective-C:

NSLog(nameOfYourDictionary);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM