Hi all.. approaching the home stretch.. but think I'm getting dumber..
trying to CurlDown an overlay.
with this.
trying to CurlDown an overlay.
with this.
Code:
-(void) showInfoScreen
{
// Creates the info / Setting screen //
// turn off timer //
[self timerControl:PAUSETIMER];
// UIView *infoView = [[UIView alloc] initWithFrame:CGRectMake(0,0,320,640)];
//UIView *mainViewOverlay = [[UIView alloc] initWithFrame:CGRectMake(0,0,320,640)];
UIImageView *popupView =[[UIImageView alloc] initWithFrame:CGRectMake(48.5,55.5,240,370)];
if (!overlayHelpScreen) {
overlayHelpScreen = [[UIView alloc] initWithFrame:CGRectMake(0,0,320,640)];
[overlayHelpScreen setBackgroundColor:[UIColor clearColor]];
}
/*
UIGraphicsBeginImageContext(self.window.frame.size);
[[UIImage imageNamed:@"Scroll-paper_2.png"] drawInRect:self.window.bounds];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
*/
[popupView setImage:[UIImage imageNamed:@"Scroll-paper_2.png"]];
[popupView setAlpha:0.0];
popupView.tag = 501;
//[overlayHelpScreen setAlpha:0.0];
// animate the View on //
[overlayHelpScreen addSubview:popupView];
//[[self window] addSubview:overlayHelpScreen];
// [[self window] addSubview:infoView];
[[self window] addSubview:overlayHelpScreen];
[self setAnimationPageCurl:popupView];
// [popupView release];
}
// UIView *overlayHelpScreen in MYGameAppDelegate.h
- (void) setAnimationPageCurl:(UIImageView *)imageView {
[UIView transitionWithView:imageView
duration:1.5
options: UIViewAnimationCurveEaseOut | UIViewAnimationOptionTransitionCurlUp
animations:^ { imageView.alpha = 0.850; [UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:overlayHelpScreen cache:YES]; //<----- just guessing here }
completion:nil];
}
so fade is fine. NO Curl action.
thanks
Ian
So much for me thinking I understand blocks. :confused: