If you want to know the version of your application what version of your application running or currently working off what version or might be you will send the version of the application to the server for update notification it is very useful. you to pick the version from bundle class of key
“CFBundleShortVersionString” . you can see the example:-
let nsObject: AnyObject? = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as AnyObject?
print("version of your application",nsObject!)
Be the first to comment.