4
我想知道如何訪問iOS應用程序的目標版本。如何訪問應用程序版本?
This number : http://img11.hostingpics.net/pics/146187Capturedcran20110728111355.png
感謝
我想知道如何訪問iOS應用程序的目標版本。如何訪問應用程序版本?
This number : http://img11.hostingpics.net/pics/146187Capturedcran20110728111355.png
感謝
NSDictionary* infoDict = [[NSBundle mainBundle] infoDictionary];
NSString* versionNum = [infoDict objectForKey:@"CFBundleVersion"];
這會給版本號。同樣,您也可以獲得其他屬性。
謝謝Praveen S,這不是你第一次幫我! –
快樂是我的! ;-) –
這似乎不起作用(任何更多)。它返回內部版本號,而不是版本號。 – Dogweather