iphone - preferredContentSize not working instead of contentSizeForViewInPopover -
i working on project want make app compatible ios7.
self.contentsizeforviewinpopover = cgsizemake(90, 1 * 65 - 1);
this method deprecated ios7
new method self.preferredcontentsize= cgsizemake(90,1*65-1);
but not getting proper ui
but when changing ios7 compatiable method view this
with ios7 method getting
this given in apple documentation:
this property allows direction manipulation of content size of popover. changing property directly equivalent animated=yes. content size limited minimum width of 320 , maximum width of 600.
@property (nonatomic) cgsize popovercontentsize; - (void)setpopovercontentsize:(cgsize)size animated:(bool)animated;
i have implemented handle content size of popover & working:
self.popcontroller.popovercontentsize = cgsizemake(430, 460);
Comments
Post a Comment