How to read from a plist with Swift 3 iOS app

前端 未结 7 1886
無奈伤痛
無奈伤痛 2020-12-24 06:49

-Disclaimer-
I\'m extremely new to iOS and Swift development, but I\'m not particularly new to programming.

I have a basic iOS applicati

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-24 06:58

    You can also read value directly from your plist file by simply

    let value = Bundle.init(for: AppDelegate.self).infoDictionary?["your plist key name"] as? Any
    

提交回复
热议问题