Alamofire経由のURLからUITableViewCellのimageViewを定期的に(たとえば1秒ごとに)更新するにはどうすればよいですか?Swift 3 UITableViewCell Alamofire Image Update
0
A
答えて
0
タイマーではできませんか?
例えば:あなたのURLが定期的に変化している時に
var changeImageTimer= Timer.scheduledTimerWithTimeInterval(1.0, target: self, selector: Selector("changeImage"), userInfo: nil, repeats: true)
func changeImage()
{
//Code to change your image here
}
+0
OPでは、どのバージョンのswiftが指定されていません。コードはXcodeで変換されます –
+2
申し訳ありませんが、それを逃した。回答を更新する –
関連する問題
- 1. Multipart Image Alamofire 4 swift 3
- 2. alamofire json parsing swift 3
- 3. Swift 3 Alamofire JSONレスポンス
- 4. Json Parsing Swift 3 Alamofire
- 5. Swift 3 UITableViewCell indexPath.row messing up
- 6. swift 3 alamofire swiftyjson添え字
- 7. Alamofire in Swift 3 iOS 8
- 8. Alamofire 4 Swift 3 ParameterEncoding Custom
- 9. Swift 3 Alamofire Swifty json parsing issue
- 10. Image of Table View Swift 3
- 11. Alamofire 4 Swift 3パラメーター付きのGETリクエスト
- 12. ルータコードをAlamofire 4.0とSwift 3にアップグレード
- 13. Swift 3:Alamofire POSTリクエストパラメータの問題
- 14. Alamofire 4、Swift 3、json bodyの作成
- 15. ObjectMapperとAlamofireの問題Swift 3のAlamofireバージョンAlamofire 4について
- 16. Rest、Json、Alamofire - Swift
- 17. image for backBarButtonItem in naviagtion bar swift 3
- 18. ダウンロードImage from Url iOS 10 Swift 3
- 19. Java swing&sqlite - update image
- 20. Swift Alamofire Mapper
- 21. swift alamofire json parse
- 22. Alamofire json swift 2.2
- 23. Swift Alamofire VS AFNetworking
- 24. Alamofire Swift 3でアップロードされた最後の画像のみ
- 25. Alamofire 3カスタムエンコーディングTo Alamofire 4カスタムエンコーディング
- 26. Alamofire 4.0、スウィフト3 AFError.Swift
- 27. Alamofire 4.0とiOS 10とSwift 3でGoogle Places APIを使用
- 28. Alamofire Swift get html source
- 29. Alamofire JSONシリアライゼーションエラー - Swift 2.0
- 30. [Swift、Alamofire]:responseValidationFailed、エラーコード400
はイメージですか? –