How to get a key value from info.plist iOS swift

Solution:


  func AppkeyPath() -> (NSString) {
        return Bundle.main.object(forInfoDictionaryKey:"keyName") as! NSString
    }

Add the above function to your utils and add the "keyName" in your info.plist

Comments

Popular posts from this blog

store cgpoint in userdefaults iOS swift

Invalid bundle error while upload the app to the app Store