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

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift