I am trying to fill a table in a today extension each time a user swipes it. I managed to have it working fine the first time the extension is opened, yet when I close and reopen it the cell does not get populated notwithstanding the source is correctly populated. When I look at the logs it looks like just:func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Intis called but no:func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCellMoreover I have really no cue about how to handle the session among the widget openings. If I invalidate it when I exit the extension, then it finds it invalidated on return, if I put it to nil and regenerate it or I just ignore it when exiting I get:A background URLSession with identifier .... already exists!and sometimes even the nasty:Attempted to create a task in a session that has been invalidated even the first time.This latter usually solved by cleaning the Derived folder.This is the piece of Swif
0
0
1.7k