读取iphone系统plist

    技术2025-10-04  6

    NSString *tempString1 = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];

    lblCFBundleName.text=tempString1;

    [tempString1 release];

     

     

    NSString *tempString2 = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];

    lblCFBundleVersion.text=tempString2;

    [tempString2 release];

     

     

    NSString *tempString3 = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIdentifier"];

    lblCFBundleIdentifier.text=tempString3;

    [tempString3 release];

     

    还有这么多噢..自己看吧

    <key>CFBundleDevelopmentRegion</key>

     <string>English</string>

     <key>CFBundleDisplayName</key>

     <string>${PRODUCT_NAME}</string>

     <key>CFBundleExecutable</key>

     <string>${EXECUTABLE_NAME}</string>

     <key>CFBundleIconFile</key>

     <string></string>

     <key>CFBundleIdentifier</key>

     <string>com.yourcompany.${PRODUCT_NAME:identifier}</string>

     <key>CFBundleInfoDictionaryVersion</key>

     <string>6.0</string>

     <key>CFBundleName</key>

     <string>${PRODUCT_NAME}</string>

     <key>CFBundlePackageType</key>

     <string>APPL</string>

     <key>CFBundleSignature</key>

     <string>????</string>

     <key>CFBundleVersion</key>

     <string>1.0</string>

     <key>LSRequiresIPhoneOS</key>

     <true/>

     <key>NSMainNibFile</key>

     <string>MainWindow</string> 

     

    最新回复(0)