親子日記APP
|
免費申請
|
登入
mini box 迷你盒子
這裡是工程師的筆記資料.
部落格
相簿
APP日記
書籤
標籤:
Swift4
的相關文章
瀏覽方式:
摘要列表
|
標題列表
|
全站 《Swift4》 相關
[Swift] status bar 的高度計算
2018
11
01
15:55
當接聽電話或是開啟熱點 (Hotspot) 時 會像這樣多了一列 高度20pt 的提示列 某些情境,沒注意的話 會造成畫面異常
dropbox navigation bar 被遮住 navigation bar 多了 20pt 的空白 以上是舊款 iPhone 5~8 若是 iPhone X 系列,則不會增加一條 20pt 的提示列 會像這樣: 標準的 status bar 是 20pt 用這個 API 可取得目前的 stauts bar 高度 let statusHeight = UIApplication.shared.statusBarFrame.size.height // 20 or 40 print("statusHeigh...
繼續閱讀»
分類:
Swift 學習筆記
/
留言(0)
note: iOS Facebook 登入
2018
04
11
16:01
iOS 專用 Facebook 登入 - 快速入門 https://developers.facebook.com/docs/facebook-login/ios/ 要特別注意的是 【設定 Info.plist】 在 Info.plist 中要加這段 (也可不加) <key>LSApplicationQueriesSchemes</key> <array> <string>fbapi</string> <string>fb-messenger-share-api</string> <string>fbauth2</string> <stri...
繼續閱讀»
分類:
Swift 學習筆記
/
留言(2)
swift 3/4 將訊息轉貼到 Line (呼叫 Line App)
2017
10
27
11:24
Info.plist 必須新增 <key>LSApplicationQueriesSchemes</key> <array> <string>line</string> </array> 不然會出現錯誤 http://www.jianshu.com/p/631bd7f12a38 error: "This app is not allowed...
繼續閱讀»
分類:
Swift 學習筆記
/
留言(0)