當前位置:成語大全網 - 新華字典 - 在oc中nsbundle mainbundle是什麽意思

在oc中nsbundle mainbundle是什麽意思

[[NSBundle mainBundle] infoDictionary] 返回的是壹個數據字典內容如下:

(XX1 為當前應用的名字 也就是app 包的名字 )--( 部分地方 XX 大寫 我隱藏了部分信息...... )

ios 應用發布後 .app 應用文件內 ::{

CFBundleDevelopmentRegion = en;

CFBundleDisplayName = "當前app 文件名XX1";

CFBundleExecutable = "當前app 文件名XX1";

CFBundleExecutablePath = "/Users/yq-010/Library/Application Support/iPhone Simulator/5.1/Applications/49419CEE-6608-48FE-81FE-BF40FEEFB8F7/XX1.app/xx1";

CFBundleIconFiles = (

"icon.png",

"icon@2x.png"

);

CFBundleIcons = {

CFBundlePrimaryIcon = {

CFBundleIconFiles = (

"icon.png",

"icon@2x.png"

);

UIPrerenderedIcon = 1;

};

};

CFBundleIdentifier = "com.xxxx.xxxxx";

CFBundleInfoDictionaryVersion = "6.0";

CFBundleInfoPlistURL = "Info.plist -- file://localhost/Users/yq-010/Library/Application%20Support/iPhone%20Simulator/5.1/Applications/49419CEE-6608-48FE-81FE-BF40FEEFB8F7/XX%20XX%20XX.app/";

CFBundleName = "XX1";

CFBundlePackageType = APPL;

CFBundleShortVersionString = "1.3";

CFBundleSignature = "";

CFBundleSupportedPlatforms = (

iPhoneSimulator

);

CFBundleVersion = "1.3";

DTPlatformName = iphonesimulator;

DTSDKName = "iphonesimulator5.1";

LSRequiresIPhoneOS = 1;

NSBundleInitialPath = "/Users/yq-010/Library/Application Support/iPhone Simulator/5.1/Applications/49419CEE-6608-48FE-81FE-BF40FEEFB8F7/XX1.app";

NSBundleResolvedPath = "/Users/yq-010/Library/Application Support/iPhone Simulator/5.1/Applications/49419CEE-6608-48FE-81FE-BF40FEEFB8F7/XX1.app";

UIDeviceFamily = (

1

);

UIPrerenderedIcon = 1;

UIRequiredDeviceCapabilities = (

armv7

);

UISupportedInterfaceOrientations = (

UIInterfaceOrientationPortrait

);

}