ios - ModalUIview, not dismiss but transition / fade into ViewController -
i have uiview
display modally, view hosts imageview
, trying create vehavior when user clicks on button ( select ) instead of dimissing modal window fade in ( transition ) modal window viewcontroller
, , make image background of parent viewcontroller
, couldn't find quite behavior online.
any ideas?
set custom hide , show methods view. this:
- (void)show:(bool)animated { if (animated) { __weak storymetadataview * blockself = self; [uiview animatewithduration:kshowhideduration animations:^{ blockself.alpha = 1.0; } completion:^(bool finished) { }]; } else { self.alpha = 1.0; } } - (void)hide:(bool)animated { if (animated) { __weak storymetadataview * blockself = self; [uiview animatewithduration:kshowhideduration animations:^{ blockself.alpha = 0.0; } completion:^(bool finished) { [blockself removefromsuperview]; }]; } else { self.alpha = 0.0; } }
Comments
Post a Comment