親子日記APP
|
免費申請
|
登入
mini box 迷你盒子
這裡是工程師的筆記資料.
部落格
相簿
APP日記
書籤
標籤:
iOS
的相關文章
瀏覽方式:
摘要列表
|
標題列表
|
全站 《iOS》 相關
iPhone 漏洞 (Pegasus 、Triangulation)
2023
12
29
17:02
兩年前的 Pegasus 飛馬間諜軟體, 以色列 NSO Group 開發 能夠讀取簡訊、跟蹤通話、收集密碼、追蹤位置、 iPhone 麥克風和攝像頭 不過攻擊的成本很高,多用來對付黨政軍重要人士... 一般民眾被駭的機率不高 據說有 5 萬人遭駭,18個記者、異議人士、維權人士、企業家,600多政府高官,包含法國總統馬克宏 https://en.wikipedia.org/wiki/Pegasus_(spyware) NSO Group 飛馬間諜軟體鑑識報告 A deep dive into an NSO zero-click iMessage exploit: Remote Code Execution 這篇是 google 研究員的詳細分析 ...
繼續閱讀»
分類:
security
/
留言(1)
Xcode 11.x:讓 APP 「不支援」 Dark Mode
2019
11
15
09:25
Xcode 11.x 做出來的 app 會「自動支援」 Dark Mode 暗黑模式
但若自己的 APP UI 設計(某些自訂元件或畫面) 沒考慮到 Dark Mode 暗黑模式時
畫面上有些內容可能會看不到或顯示的顏色不易辨識
可在 Info.plist 加入即可讓 APP 執行時,一直保持傳同的亮色模式
避免 APP 進入 Dark Mode 深色模式 (暗黑模式) <key>UIUserInterfa...
繼續閱讀»
分類:
Swift 學習筆記
/
留言(0)
筆記: 舊版 Xcode 無法裝 app 到新版 iOS 的問題
2019
09
22
22:09
例如 Xcode 10.x 就無法將軟體裝到 iOS 13 進行測試/除錯
會出現類似警告訊息:
This iPhone XS Max is running iOS 13.0 (17A5492t), which may not be supported by this version of Xcode. 解決方式:
安裝最新的 Xcode
再從新版本的 Xcode 複製 Device Support 檔案 ...
繼續閱讀»
分類:
Swift 學習筆記
/
留言(0)
Swift: 讀取 iOS 設備的型號/版本資料
2018
03
07
14:53
Swift: 讀取 iOS 設備的型號/版本資料
let dictionary = Bundle.main.infoDictionary! let app_version = dictionary["CFBundleShortVersionString"] as! String let app_build = dictionary["CFBundleVersion"] as! String let app_dDis...
繼續閱讀»
分類:
Swift 學習筆記
/
留言(0)
筆記: Command Line Tools for Xcode 更新問題
2017
12
12
16:45
更新完會可能有問題
~$ git
xcrun: error: active developer path ("/Applications/Xcode9.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use...
繼續閱讀»
分類:
Apple
/
留言(0)
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)
swift: navigation bar 設定背景圖片
2017
06
28
12:19
# 1 nav_bg.png 320x44 (@x1) // // ViewController.swift import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() //nav_bg.png 320x44 navigationController?.navigationBar.setBackgroundImage(UIImage(named: "nav_bg.png"), for: .de...
繼續閱讀»
分類:
Swift 學習筆記
/
留言(2)
Swift: 動態更改 initial viewcontroller
2017
06
15
15:49
App 的設計常常會有的狀況: 啟動 App 後 已經登入 --> 直接跳掉 App主功能畫面 尚未登入 --> 先顯示登入畫面 但 Storyboard 中已經將 Initial View Controller 指向「登入 View」時 如何在已登入狀況下,直接、馬上顯示主功能畫面? --> 只要讓程式判斷登入與否,再決定 Initial View Controller 是哪一個! 在 AppDelegate.swft 中: //App啟動後 第一個呼叫的method func application(_ application: UIApplication, didFinish...
繼續閱讀»
分類:
Swift 學習筆記
/
留言(0)
Swift: 判斷 App 是在 iPhone 實體機執行,還是在模擬器中
2017
05
24
14:48
#if (arch(i386) || arch(x86_64)) && os(iOS) ...模擬器 #else ...iOS 實體機 #endif Detect the watchOS simulator #if (arch(i386) || arch(x86_64)) && os(watchOS) ...模擬器 #else ...watchOS 實體機 #endif Detect the tvOS simulator #if (arch(i386) || arch(x86_64)) && os(tvOS) ... #endif Or, even, detect any ...
繼續閱讀»
分類:
Swift 學習筆記
/
留言(0)
swift3學習:作業8: 研究 UIAlertController
2017
03
05
12:25
上了彼得潘的iOS App程式設計入門 課程才發現 原來很多的 iOS 上的效果,Apple早就幫你準備好了,在 Storyboard 或是簡單的程式就可以做出來 不需再寫個幾百、幾千行的程式來處理一堆的 UI 效果,只要專心於程式的核心的開發 這次作業8是 研究 UIAlertController,利用它在編輯頁面做檢查,比方檢查欄位空白時,顯示錯誤 看圖比較快
這兩種對話框都是 UIAlertController 做出來 對話框中按鈕可以一個或多個 下面各種對話框的做法: /* 單一提示框 */ @IBAction func btnClick(_ sender: Any...
繼續閱讀»
分類:
Swift 學習筆記
/
留言(0)
上一頁
1
2
下一頁