1

I've been writing a today widget. The extension has a title but the body is not showing.

enter image description here

I changed viewDidLoad method with this and added constraints to elements, still not working in simulator or device.

override func viewDidLoad() {
        super.viewDidLoad()
        self.preferredContentSize = CGSizeMake(320, 250);
        // Do any additional setup after loading the view from its nib.
    }
Andrew
  • 15,357
  • 6
  • 66
  • 101
amone
  • 3,712
  • 10
  • 36
  • 53

1 Answers1

0

Not showing means there is something wrong with your code. Need more context to solve this so try attaching your debugger.

One problem is that usually if you use Swift, you have to declare @objc(TodayViewController) above the class declaration file to enable the app to find the class.

ktzhang
  • 4,069
  • 2
  • 19
  • 18
  • I guess something is wrong with ios 8 beta. It works for every 1 of 3-4 trials without any change.. – amone Aug 10 '14 at 11:14