I'm working on an application that uses today's widget where I need to show some table view with nearly 50 rows.but the screen fits only for 10 rows.So I need to increase the height of widget as per my table height.I've done a lot of research on this which says me can't be done.I've seen the yahoo stocks app,which has "show all" feature to display all stocks on widget with height more than that of screen height.If something is done somewhere why can't I do that? I've tried to set the height of my todayviewcontroller view height in both the ways using autolayout,setting "preferredContentSize".I really wanted to know whether I'm doing wrong somewhere, or it is not possible to have widget height more than screen height.Any suggestion is appreciated. Here is my code Todayviewcontroller.m
-(void)adjustWidgetHeight {
NSLayoutConstraint *heightConstraint = [NSLayoutConstraint constraintWithItem:self.view
attribute:NSLayoutAttributeHeight
relatedBy:0
toItem:nil
attribute:NSLayoutAttributeNotAnAttribute
multiplier:1
constant:2140];
heightConstraint.priority = 999;
[self.view addConstraint:heightConstraint];
[self.view needsUpdateConstraints];
[self.view setNeedsLayout];
}