Skip to content
Hide Menu
  • 關於Max
  • 隱私權宣告

Max的程式語言筆記

我要當一個豬頭,認真過每一天、快樂過每一天就好

Menu
  • 首頁
  • Android
  • iOS
  • Python
  • Dropboxlike
  • WordPress
  • JSP
  • 電腦相關
  • 關於Max

標籤: Swift

[iOS] Double value cannot be converted to Int because the result would be greater than Int.max

2018-02-13

因為把 date.timeIntervalSince1970 * 1000 轉成 int 會出錯,所以改用 Int64 …

[iOS] parse json string in swift

2018-02-132018-02-13

我有一組 json 長的像醬子,要在 swift 裡 parse { “date”:[ {&#8…

[iOS] get device ip address in swift

2018-02-132018-02-13

主程式:         if let addr = getWiFiAddress() {             le…

[iOS] How to programmatically check if running on an iPhone or iPad device

2018-02-09

In Swift: if UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdi…

[iOS] Module compiled with Swift 3.1 cannot be imported in Swift 4.0.3

2018-02-01

遇到使用 AirWatchSDK,拿到舊的版本是用 Swift 3.1 寫的,官方寫要用 xcode 8.3 來跑,但目…

[iOS] How to detect touch on UIWebView Ask

2018-01-26

class ViewController: UIViewController, UIGestureRecognizerD…

[iOS] How to detect screen activity via UIViewController

2018-01-262018-01-28

如何判斷 user 是否 idle timeout, 就是在 on touch 裡  reset 掉 timer cou…

[iOS] How to properly dismiss modal viewcontroller with completion handler

2018-01-26

有參數要傳給 dismiss 的 completion 要怎麼寫? Pretty easy, pass funcToCa…

[iOS] Warning: UIAlertController is already presenting

2018-01-26

UIAlert 彈 2次會出問題,解法: if presentedViewController == nil { sel…

[iOS] Swift Attempt to present UIAlertController whose view is not in the window hierarchy

2018-01-262018-01-26

Found a solution here. I’m probably doing it wrong but…

  • « 上一頁
  • 1
  • 2
  • 3
  • 4
  • 5
  • 下一頁 »
  • © 2022 Max的程式語言筆記
Skacero Theme by : icyNETS