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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -