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

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift