1.pod install超時(shí)問(wèn)題
主要是因?yàn)間ithub連不上字支。
在ios/Podfile里第一行增加:source'https://cdn.cocoapods.org/'
從https://raw.hellogithub.com/hosts 下載hosts
即可瘦锹。
2.下載圖片無(wú)法顯示
ios下載只能在自己的getApplicationDocumentsDirectory()中,
在ios/Runner/Info.plist中增加
<key>LSSupportsOpeningDocumentsInPlace</key>
? ? <true/>
? ? <key>UISupportsDocumentBrowser</key>
? ? <true/>
那么下載后的圖片會(huì)在我的文件中顯示