1

My today extension (RSS Reader on picture) is not showing anything if table view is added (I have tried multiple prototype cells and also dynamically). I am using storyboards. I have been reading several articles and I watched video from WWDC 2014 and all mentioned, that today extension is "based" on view controllers but I guess I must be missing something.

There is nothing I could show you in code. Simply If I add a table view then extension is showing nothing.

enter image description here

Xoroxoxoxoxoso
  • 505
  • 6
  • 17

1 Answers1

8

You need to set the height of the widget by setting self.preferredContentsize to equal content size of the tableview. This has to be done in your controller.

self.preferredContentSize = self.tableView.contentSize;
Sergio del Amo
  • 76,835
  • 68
  • 152
  • 179
Henry T Kirk
  • 961
  • 9
  • 13