天天看點

uimodalpresentationformsheet resize ios7

crohomecraaddcontroller *temp

=[[crohomecraaddcontrolleralloc]

init];

    temp.modaltransitionstyle =

uimodaltransitionstylefliphorizontal;

    temp.modalpresentationstyle =

uimodalpresentationformsheet;

    [self.parentviewcontroller.parentviewcontrollerpresentviewcontroller:temp animated:yescompletion:^(){

    }];

    temp.view.superview.frame = cgrectmake(0, 0, 824, 600);

在crohomecraaddcontroller的類中,加入

- (void)viewwilllayoutsubviews{

    [superviewwilllayoutsubviews];;

//    self.view.frame = cgrectmake(-130, -30, 824,

600);

    self.view.frame = cgrectmake(0, 0, 824, 600);

    self.view.superview.frame = cgrectmake(100, 30, 824,

    self.view.superview.backgroundcolor

= [uicolorredcolor];

}

可以實作!!!ios7