發表文章

目前顯示的是有「iOS」標籤的文章

iOS 隱私權政策 - 永續發展基礎

  [永續發展基礎] 隱私權政策 爪哇手行動創新 尊重您的隱私。 本隱私權政策旨在說明我們如何收集、 使用、 分享和保護您在使用 [您的 App 名稱] 時所提供的個人資訊。 1. 我們收集哪些資訊 我們可能會收集以下類型的資訊: 裝置資訊: 裝置型號、 作業系統版本、 唯一裝置識別碼等。 使用資訊: 您在 App 內的活動記錄、 使用時間、 偏好設定等。 2. 我們如何使用您的資訊 我們收集您的資訊, 主要用於以下目的: 提供服務: 讓您順利使用我們的 App。 改善服務: 分析您的使用行為, 以改善 App 的功能和使用者體驗。 個人化內容: 提供您感興趣的內容和服務。 行銷: 向您推送相關的廣告或促銷訊息。 3. 我們如何分享您的資訊 我們不會將您的個人資訊出售給第三方。 但在以下情況下, 我們可能會分享您的資訊: 法律要求: 為遵守法律、 法規或政府要求。 保護權益: 為保護我們的合法權益、 使用者或公眾的安全。 合併或收購: 若公司發生合併、 收購或資產轉讓等交易。 4. 資訊安全 我們採取合理的技術和組織措施, 保護您的個人資訊免遭未經授權的存取、 使用、 洩露、 修改或損壞。 5. 兒童隱私 [永續發展基礎] 並非針對兒童設計, 我們不會故意收集 13 歲以下兒童的個人資訊。 6. 您的選擇 您可以隨時選擇不提供某些資訊, 或透過裝置設定調整您的隱私設定。 但請注意, 這可能會影響您使用某些 App 功能的能力。 7. 政策更新 我們可能會不時更新本隱私權政策。 建議您定期查閱本政策, 以了解最新資訊。 8. 聯繫我們 如果您對本隱私權政策有任何疑問, 請透過 javahandmobile@icloud.com 與我們聯繫。

iOS Push Notification Notes

UIApplication https://developer.apple.com/documentation/uikit/uiapplication/   registerForRemoteNotifications() https://developer.apple.com/documentation/uikit/uiapplication/1623078-registerforremotenotifications If registration succeeds, the app calls your app delegate object’s application(_:didRegisterForRemoteNotificationsWithDeviceToken:) method and passes it a device token.

Apple Related Tutorial

Develop in Swift  Tutorials   App Dev  Tutorials Develop apps for Apple platforms

200131 Cannot remove an observer for the key path "contentSize" because it is not registered as an observer.

Crashlytics 回報以下問題 Cannot remove an observer for the key path "contentSize" because it is not registered as an observer. 網路上找了半天,沒有一個很明確的解決方案。 最後綜合以下兩個網頁中的內容,希望以後不要再出現此問題。 1. https://xbuba.com/questions/37624138 此連結中,建議把 addObserver 與 removeObserver 分別放在 viewDidLoad 與 dealloc 中。 2. https://stackoverflow.com/questions/25497928/dealloc-in-swift 此連結中,則是說明 dealloc 在 Swift 中對應的是 deinit。

20200131 Crash-free statistics

圖片
臭屁一下 Android 最新版 01/15 上線到現在 無問題發生 iOS 最新版 01/16 上線到現在 出現兩個錯誤,不過是前人種的樹。

190610 iOS Widget / Today Extension

1. iOS today extension (swift) 教學筆記 2. Protocol NCWidgetProviding 3. Sample Code - Building a Simple Widget for the Today View 4. Technical Note TN2435 - Embedding Frameworks In An App

190510 iOS Icon Size

二年多沒碰 iOS 的開發。 這次公司客戶需要一個簡單的 App,於是再次接觸到 iOS 的開發。 在開發完上傳時,出現以下的訊息。僅節錄第一則錯誤內容。 App Store Connect Operation Error ERROR ITMS-90713: "Missing Info.plist value. A value for the Info.plist key 'CFBundleIconName' is missing in the bundle 'com.xuixkexsi.xmpxrkxngxpaxe'. Apps built with iOS 11 or later SDK must supply app icons in an asset catalog and must also provide a value for this Info.plist key. For more information see http://help.apple.com/xcode/mac/current/#/dev10510b1f7." 看到這才想到,對齁,沒有放 Icon。 因為公司 App 的服務只是 Side Dish,所以沒有很正式的專案管理與流程。所以,就是兵來將擋,水來土掩的處理方式。 Apple 對於 iOS Icon 尺寸的需求,如以下網頁的說明。 https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/app-icon/ 但似乎會讓人誤會;因為同事後來提供的 Icon 圖檔,一一放入 Xcode 後,才發現少了 20, 29, 與 76 的尺寸。 於是我將 Icon 尺寸需求整理如下。 20x20 + 40x40 (20@2x) + 60x60 (20@3x) 29x29 + 58x58 (29@2x) + 87x87 (29@3x) 76x76 + 152x152 (76@2x) 80x80 (40@2x) 120x120 (60@2x) + 180x180 (60@3x) 167x167 (83.5@2x) 1024x1024 ...

190408 iOS Device Compatibilities

https://developer.apple.com/library/archive/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/DeviceCompatibilityMatrix/DeviceCompatibilityMatrix.html 可作為購買 iOS 測試機時的參考依據

190328 iOS Swift UITextField 文字編輯偵測

首先,找到的是以下這篇 StackOverflow https://stackoverflow.com/questions/28394933/how-do-i-check-when-a-uitextfield-changes 才發現 Swift 版本不同,用法也不同,怪怪。 目前 Swift 的版本為 4.2,所以就參考 Swift 4 的部份吧。 但剛透過以下連結,查了公司 Mac 中的 Swift 版本,已經到 5.0 了。 https://stackoverflow.com/questions/31247229/which-version-of-swift-compiler-is-the-default-xcode-6-4 xcrun swift --version ————————————————————————————————— 在撰寫 addTarget 時,遇上了以下的問題 Argument of '#selector' refers to instance method 'xxx' that is not exposed to Objective-C Add '@objc' to expose this instance method to Objective-C 網路上查到以下這篇,當中有原文說明。 https://blog.csdn.net/KevinQueen/article/details/78286189 有兩種處理方式,一是在 func 前加上 @objc,另一個是在 class 上方加上 @objcMembers。