2
0

Fix appearance of content tip edit icon.

[FIXED]     Tip on storage type passwords had a missing edit icon.

MP-5 fixed
This commit is contained in:
Maarten Billemont 2012-02-29 19:59:01 +01:00
parent bad54f2c0c
commit c508ed8c46

View File

@ -55,7 +55,7 @@
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([[segue identifier] isEqualToString:@"MP_Main_ChooseType"]) if ([[segue identifier] isEqualToString:@"MP_Main_ChooseType"])
[[segue destinationViewController] setDelegate:self]; ((MPTypeViewController *)[segue destinationViewController]).delegate = self;
} }
- (void)viewWillAppear:(BOOL)animated { - (void)viewWillAppear:(BOOL)animated {
@ -115,7 +115,7 @@
}]; }];
self.alertBody.text = nil; self.alertBody.text = nil;
self.contentTipEditIcon.alpha = 0; self.contentTipEditIcon.hidden = YES;
[super viewDidLoad]; [super viewDidLoad];
} }
@ -232,14 +232,17 @@
[UIView animateWithDuration:0.2f animations:^{ [UIView animateWithDuration:0.2f animations:^{
self.contentTipContainer.alpha = 1; self.contentTipContainer.alpha = 1;
} completion:^(BOOL finished) { } completion:^(BOOL finished) {
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 5.0f * NSEC_PER_SEC); if (finished) {
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 5 * NSEC_PER_SEC);
[UIView animateWithDuration:0.2f animations:^{ dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
self.contentTipContainer.alpha = 0; [UIView animateWithDuration:0.2f animations:^{
} completion:^(BOOL finished) { self.contentTipContainer.alpha = 0;
icon.hidden = YES; } completion:^(BOOL finished) {
}]; if (finished)
}); icon.hidden = YES;
}];
});
}
}]; }];
} }