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
few things noticed:
try setting tableview's delegate , datasource in
viewdidload()
:self.tableview.delegate = self self.tableview.datasource = self
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
Post a Comment