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
Post a Comment