原创 Swift 動態更改桌面圖標,有彈窗這個很煩!

<key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>$(EXECUT

原创 Swift 取消H5頁面上的視頻自動播放 解決辦法:

在web界面播放視屏時,切換界面,仍然聽到聲音,當然立刻想到的解決辦法是,在這個界面消失的時候與H5互調.涉及到界面很多視頻的時候此複雜的方法就變得更麻煩了. 注:這種方法還是有弊端的,如果你從H5界面再往下一級界面跳轉,那麼就會出問題!

原创 Xcode不聯想代碼

Build Settings -> User Header Search Paths ,然後添加$(PODS_ROOT), 設置爲recursive

原创 Swift 百度座標 轉 火星座標

百度座標 轉 火星座標 // 百度座標 轉 火星座標 func convert_bd09_to_gcj02(lat: Double, lng: Double)-> (lat: Double, lng: Double)

原创 [iOS功能]- SVProgressHUD的一些常見用法 基本方法

SVProgressHUD GitHub地址:https://github.com/TransitApp/SVProgressHUD SVProgressHUD和MBProgressHUD效果差不多,特點就是不需要使用協議,同時也不需要聲

原创 如何配置Alfred 4的WebSearch

[option + 空格] 調出Genneral搜索框 然後就是跳轉的界面了!

原创 Swift URL含有中文解包報錯 Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value

報錯原因: self.webView.load(URLRequest(url: URL(string: url)!)) 此處解包失敗 URL(string: url)! 報錯位置 出錯url , 因爲存在中文 let url =

原创 [CocoaPods] - warning: Insecure world writable dir /usr/local/sbin in PATH, mode 040777

錯誤日誌 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/rbconfig.rb:229: warn

原创 [Cocoapods] - 更新 Cocoapods 庫如何解決 pod setup 過慢的問題

在國內 pod setup 基本都涼涼!我們直接不用終端下載,手動更快! 直接到官網下載CocoaPods:https://github.com/CocoaPods/Specs 我自己的Git也可以下載:https://gitee.co

原创 charles failed to install helper:the operation couldn't be complted.(CFErrorDomainLaunchd error 9)

系統版本: macOS Big Sur 11.0.1 打開終端後,輸入 launchctl print-disabled system 回車後查看com.xk72.charles.ProxyHelper 無論是不是true, 都執行 su

原创 ReactNative 獲取時間 日期格式化

1、moment http://momentjs.cn/ react native 新建工程時,node_modules已包含moment使用 //··· import moment from 'moment'; //··· moment(

原创 什麼是許可協議?

什麼是許可,當你爲你的產品簽發許可,你是在出讓自己的權利,不過,你仍然擁有版權和專利(如果申請了的話),許可的目的是,向使用你產品的人提供 一定的權限。 不管產品是免費向公衆分發,還是出售,制定一份許可協議非常有用,否則,對於前者,你相當於

原创 打開時間機器限制

打開時間機器限制 sudo sysctl debug.lowpri_throttle_enabled=0 關閉時間機器限制 sudo sysctl debug.lowpri_throttle_enabled=1

原创 # iOS14升級後使用最新Xcode12報錯問題處理

XCode12編譯真機可以運行,模擬器報錯如下 No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64 arm

原创 ReactNative 實現同步更新

下面這樣做有時候會不更新數據 // 監聽 picker 的改變 UNSAFE_componentWillReceiveProps(nextProps) { if (this.state.lastIllnessTitle !== ne