原创 [Git]Git Config

[alias] lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an

原创 [Swift]解析遠程返回的中文編碼(GBK/GB2312)數據

直接看代碼: let url = "http://cq.ssajax.cn/interact/getTradedata.ashx?pic=qlpic_000001_1_1" let data = try?

原创 [React Native]Action dispatch無法傳遞到redux

新手問題:function mapDispatchToProps(dispatch) 需要通過function mapDispatchToProps(dispatch) 關聯起來才能調用機制。

原创 [iOS]Xcode 10 jump to definition 無效

1. 檢查快鍵鍵 2. 刪除Derived Data cd ~/Library/Developer/Xcode/DerivedData rm -rf * 或者 Xcode > Preference > Locations > Der

原创 [iOS]React-Native fetch訪問HTTPS自簽名證書服務器錯誤

如果服務器是持有自簽名證書,React-Native fetch訪問會報錯 解決方法: 找到RCTNetwork.xcodeproj中的RCTHTTPRequestHandler.m文件, 在#pragma mark - NSURLS

原创 [UML]Visual Studio Code中使用PlantUML畫圖

安裝 https://www.jianshu.com/p/ed0e979657f4 使用教程 https://usermanual.wiki/Pdf/PlantUMLLanguageReferenceGuideZH.185197153

原创 [iOS]如何斷點調試Push Notification Content Extension?

1. 選擇運行的Target爲Push Notification Content Extension Target 2. 點擊運行 3. 選擇主Target APP 4. 點擊"Run" 參考 https://stackover

原创 [iOS]iOS 10 Notification Content Extension無效

1. 確保category APP和服務端發送的一樣 2. 確保Extension Target 和主APP Target的Deployment Target版本一致。 參考: https://stackoverflow.com/qu

原创 [iOS]Push Notification on iOS(3)

Develop Push Notification on iOS Configure Push Notification Service Support Silent Mode Xcode | Targets | Capabilit

原创 [iOS]Push Notification on iOS(2)

Build Provider Server for Push Notification on iOS NodeJS+APN 1. Export .p12 from KeyChain for APS(+key). Translate

原创 [iOS]nodejs-mobile在iPhone XS崩潰

現象:內置的nodejs-mobile在iPhone XS直接crash 模擬器iPhone XS沒問題,真機有問題 Organizer Crashes 日誌 打開後可以看到 arm64_CallFunction反覆被調用,直到

原创 [iOS]Push Notification on iOS(1)

Push Notification on iOS Brief Flow Send Notification request to APNs APNs delivers the notification to target Devi

原创 [Objective-C]MD5 Crpyt(3)實現

Objective-C代碼實現 // // CryptMD5.m // CryptMD5 // // Created by andyliu on 2018/10/12. // #import "CryptMD5.h" #i

原创 [iOS]Redefinition of module

報錯信息 /ios/build/Build/Intermediates.noindex/Lottie.build/Debug-iphonesimulator/Lottie_iOS.build/module.modulemap:1:18

原创 [iOS]Xcode編譯時builtin-copy失敗

Xcode編譯時builtin-copy失敗 原因是有文件存在extended attributes,應該是Xcode命令行的一個bug。 解決方法:去除擴展屬性@ 1. 爲什麼會有這個@ ? Headers andyliu$ ls