Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to implement MVVM and also handle action from view class(UITableView didSelectRowAt) in swift 4

I want to implement MVVM in swift 4. when I call api from viewcontroller, after getting response from api then I update model class and data on UITableView class(which having all the DataSource and Delegate Methods) also I want to implement Pagination using willDisplay methods. When i get a index in willDisplay then I call api calling methods implemented in ViewController class then at that time all the UIComponent on StoryBoard was nil(UILable and UIButton on controller on storyboard). Also how to handle push from DidSelect

Comments