plist

  • plist所有取用限制列表
    • Apple文件
    • 相片:NSPhotoLibraryUsageDescription
    • 相機:NSCameraUsageDescription
  • 存取http的url
    • 先新增 App Transport Security Settings
    • 再剛剛建立完成的App Transport Security Settings下,再新增Allow Arbitrary Loads,並將boolen值設定為Yes
  • 送Request給self signed certificate的Server
    • 先新增 App Transport Security Settings
    • 在底下新增 Exception Domains的Dictionary,之後再新增下面三項Boolean的項目
    • NSExceptionAllowsInsecureHTTPLoads的值為YES
    • NSExceptionRequiresForwardSecrecy的值為NO
    • NSIncludesSubdomains的值為YES

  • 要讓系統方面(像是App Name或要求Location時的字串)顯示做到多國語言的做法
    • 先在整個專案建立"InfoPlist.strings"這字串檔(名字一定要是InfoPlist)
    • 然後確認想要顯示多國語言的Key值
    • // 像是第一個是名字
      "CFBundleDisplayName" = "BookGuru";
      "NSCalendarsUsageDescription" = "This allows you to add Book Store Events to your default Calendar.";
      "NSCameraUsageDescription" = "This allows you to scan Book barcodes to see their details, as well as taking your Profile picture.";
      "NSLocationWhenInUseUsageDescription" = "Turning on Location Services will help us determine your proximity to stores.";
      "NSLocationUsageDescription" = "Turning on Location Services will help us determine your proximity to stores.";
      "NSLocationAlwaysAndWhenInUseUsageDescription" = "Turning on Location Services will help us determine your proximity to stores.";
      "NSLocationAlwaysUsageDescription" = "Turning on Location Services will help us determine your proximity to stores.";
      "NSPhotoLibraryUsageDescription" = "This allows you to access your photo library to choose a Profile Picture.";
      "NSPhotoLibraryAddUsageDescription" = "This allows you to access your photo library to choose a Profile Picture.";
      

results matching ""

    No results matching ""