Fix link opening and popup dismissal bugs.
This commit is contained in:
parent
74e8001506
commit
c3364bbbef
@ -24,7 +24,7 @@
|
||||
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
||||
|
||||
if ([segue.identifier isEqualToString:@"web"])
|
||||
((MPWebViewController *)segue.destinationViewController).initialURL = [NSURL URLWithString:@"http://thanks.lhunath.com"];
|
||||
((MPWebViewController *)segue.destinationViewController).initialURL = sender;
|
||||
}
|
||||
|
||||
@end
|
||||
|
@ -40,7 +40,6 @@
|
||||
[UIView animateWithDuration:0.3f animations:^{
|
||||
[passwordsVC.popdownToTopConstraint layoutWithPriority:1];
|
||||
} completion:^(BOOL finished) {
|
||||
if (finished)
|
||||
[popdownVC didMoveToParentViewController:passwordsVC];
|
||||
}];
|
||||
}
|
||||
@ -52,10 +51,8 @@
|
||||
[UIView animateWithDuration:0.3f delay:0 options:UIViewAnimationOptionOverrideInheritedDuration animations:^{
|
||||
[passwordsVC.popdownToTopConstraint layoutWithPriority:UILayoutPriorityDefaultHigh];
|
||||
} completion:^(BOOL finished) {
|
||||
if (finished) {
|
||||
[popdownVC.view removeFromSuperview];
|
||||
[popdownVC removeFromParentViewController];
|
||||
}
|
||||
}];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user