How to set the height of a Today Widget Extension?
问题 How can i change the height of my App's Today Extension in the Notification Center? I tried it with the Interface Builder and with Code, the Interface Builder Displays the View with height 600, but it's not applying this height on the device. It seems I can't get it bigger than some 80 pixels... 回答1: In your widget UIViewController.m (Objective-C): self.preferredContentSize = CGSizeMake(0, 200); Will make your widget have a height of 200. Note that the width will have no affect on the view,