ios - Custom size for Modal View loaded with Form Sheet presentation -


i'm trying load uiviewcontroller in ipad form sheet presentation. problem size of new view, put size values in ibuilder modal view take fixed value.

also tried make in prepareforsegue this:

helpviewcontroller *viewcontroller = segue.destinationviewcontroller; viewcontroller.view.superview.frame = cgrectmake(0, 0, 200, 200); 

but don't work, help? thanks!

for ios 8, use:

self.preferredcontentsize = cgsizemake(width, height); 

i've placed in viewdidload.

swift 3

self.preferredcontentsize = cgsize(width: 100, height: 100) 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -