swift - Unable to load TableView in Today Extension ios -


i unable load tableview inside today extension. deleted initial view controller , replaced tableview controller. did added delegates in table view ncwidgetproviding , function widgetperformupdate. sample app, check today extension. can respond solution !!!

thanks screenshot

few things noticed:

  1. try setting tableview's delegate , datasource in viewdidload():

    self.tableview.delegate = self self.tableview.datasource = self 
  2. it's better use tableview.dequeuereusablecellwithidentifier indexpath:

    let cell = tableview.dequeuereusablecellwithidentifier("reuseidentifier", forindexpath: indexpath) 

more on here

if none of above helps, maybe there's wrong autolayout? table might displayed, it's not visible.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -