アプリケーションの終了
アプリケーションを構築する上でInfo.plistを作成する必要がある。このXMLファイルはシステムに対してアプリケーションの情報を伝える。XCodeがデフォルトのInfo.plistを作成するので、これを拡張すればいい。
Info.plistは実行アプリの名前、ホームスクリーンに表示される画像の指定、システムに対してのアプリケーションのユニークな識別子の情報が書かれている。MoveMeはフルスクリーンアプリケーションだが、これは別の言葉を使うとステータスバーが表示されていないということになる。それを実現するためにはUIStatusBarHiddenをtrueにする。MoveMeにおけるInfo.plistは下記のようになる。
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>en</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>UIStatusBarHidden</key> <true/> </dict> </plist>