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. Json Parsing Swift 3 Alamofire
- 3. Swift 3 Alamofire JSONレスポンス
- 4. Swift 3 UITableViewCell indexPath.row messing up
- 5. Alamofire 4 Swift 3 ParameterEncoding Custom
- 6. Alamofire in Swift 3 iOS 8
- 7. Swift 3 Alamofire Swifty json parsing issue
- 8. Image of Table View Swift 3
- 9. Alamofire 4、Swift 3、json bodyの作成
- 10. ルータコードをAlamofire 4.0とSwift 3にアップグレード
- 11. Alamofire 4 Swift 3パラメーター付きのGETリクエスト
- 12. ObjectMapperとAlamofireの問題Swift 3のAlamofireバージョンAlamofire 4について
- 13. image for backBarButtonItem in naviagtion bar swift 3
- 14. ダウンロードImage from Url iOS 10 Swift 3
- 15. Java swing&sqlite - update image
- 16. Swift Alamofire VS AFNetworking
- 17. Alamofire json swift 2.2
- 18. swift alamofire json parse
- 19. Alamofire 3カスタムエンコーディングTo Alamofire 4カスタムエンコーディング
- 20. Alamofire 4.0とiOS 10とSwift 3でGoogle Places APIを使用
- 21. Alamofire 4.0、スウィフト3 AFError.Swift
- 22. Alamofire JSONシリアライゼーションエラー - Swift 2.0
- 23. [Swift、Alamofire]:responseValidationFailed、エラーコード400
- 24. Alamofire Swift get html source
- 25. Swift 3とAlamofireでJSON URLからアプリに何も表示されない
- 26. Swift Firebase snapshot.allValues update
- 27. Swift Change UIView Image
- 28. カスタムヘッダ - Alamofire +スウィフト3
- 29. Swift 3パッケージマネージャーに依存してAlamofireを追加する
- 30. 応答を解析できません。alamofire swift 3
はイメージですか? –