Thursday, 15 January 2015

ios - Reading keys in plist and get the values -


In my Swift iOS project I have the following plist file. I want to read the keys without special mention and all the keys I want to get the price. I want to write it in SWIFT code. I tried the code below and received all the keys and values ​​but I want to check each key (especially "1234" etc.) and get value for it. How do I get it?

  var myDict: NSDictionary? (If "MyDict:% @", MyDict!)}     Pre> 

use this code < / P>

  for myDict (key, val)! To print a key / value {println ("\ (key): \ (val)")}  


No comments:

Post a Comment