我有一個支持分頁的api。如何加載更多的collectionview?
"pagination":{
"total":355,
"totalPages":10,
"page":1,
"nextPage":2,
"nextPageUrl":"http://api..................?page=2" }
我的目標是將nextPageUrl的圖像添加到我的collectionview。 那麼我該如何做到這一點?
任何建議或代碼示例?我是swift新手。非常感謝:)