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 uienter image description here

but when changing ios7 compatiable method view this

with ios7 method getting enter image description here

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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -