Reading version from info.plist file in iphone development

We can read our info plist file as Dictionary ,here is the code for reading version number for your application.

NSDictionary *infoPlist = [NSBundle mainBundle]infoDictionary];

we stored info.Plist file as dictionary value, now we read version number from that

NSString *VersionNum = [infoPlist objectForKey:@”CFBundleVersion”];

i hope that this might be useful, thanks in advance for your feedback and queries.



Leave a Reply

Your email address will not be published. Required fields are marked *