Skip to content

Instantly share code, notes, and snippets.

@fokayx
Last active April 14, 2017 03:39
Show Gist options
  • Save fokayx/258fd053087f7f0fb2bb5e552691c016 to your computer and use it in GitHub Desktop.
Save fokayx/258fd053087f7f0fb2bb5e552691c016 to your computer and use it in GitHub Desktop.
關於那些七零八落的記憶碎片
  • 與 iOS 同步 Google calender 設定

    https://calendar.google.com/calendar/syncselect?pli=1

  • ERROR: cannot discover where libxml2 is located on your system.

    nogogiri install error
    
    xcode-select --install
    gem install nogogiri
    
  • Launch Screen / Splash Screen image dimensions

Format : 9-Patch PNG (recommended)

Dimensions

 - LDPI:
    - Portrait: 200x320px
    - Landscape: 320x200px
 - MDPI:
    - Portrait: 320x480px
    - Landscape: 480x320px
 - HDPI:
    - Portrait: 480x800px
    - Landscape: 800x480px
 - XHDPI:
    - Portrait: 720px1280px
    - Landscape: 1280x720px
 - XXHDPI
    - Portrait: 960x1600px
    - Landscape: 1600x960px
 - XXXHDPI 
    - Portrait: 1280x1920px
    - Landscape: 1920x1280px
 
iOS
Format : PNG (recommended)

Dimensions
Format : PNG (recommended)
- Handheld (iPhone, iPod)
- Non-Retina (1x): 320x480px
- Retina (2x): 640x960px
iPhone 7 Plus, iPhone 6s Plus: 1080px × 1920px
iPhone 7, iPhone 6s: 750px × 1334px
iPhone SE; 640px × 1136px
--------------------------------
 - Tablet (iPad)
   - Non-Retina (1x)
     - Portrait: 768x1024px
     - Landscape: 1024x768px
   - Retina (2x)
     - Portrait: 1536x2048px
     - Landscape: 2048x1536px
 - Handheld (iPhone, iPod)
   - Non-Retina (1x)
     - Portrait: 320x480px
     - Landscape: 480x320px
   - Retina (2x)
     - Portrait: 640x960px
     - Landscape: 960x640px
 - iPhone 5 Retina (2x)
   - Portrait: 640x1136px
   - Landscape: 1136x640px
 - iPhone 6 (2x)
   - Portrait: 750x1334px
   - Landscape: 1334x750px
 - iPhone 6 Plus (3x)
   - Portrait: 1242x2208px
   - Landscape: 2208x1242px
  • CocoaPods
Could not automatically select an Xcode project. Specify one in your Podfile like so:

    project 'path/to/Project.xcodeproj'
=> 在開發根目錄 (與 Podfile 同一層)底下只能有一個 xcodeproj,也就是你的開發專案,其他需要載入的 xcodeproj,請另外開資料夾放置,不然就需要再 Podfile 裡面另行指定路徑。
  • You’ve implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add “remote-notification” to the list of your supported UIBackgroundModes in your Info.plist.
project > Capabilities > Background Modes: on > remote notifications: enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment