my iphone app launches a "start" screen, and when you tap the "start" screen then you simply go to the next "page." in previous versions of the beta, this was working fine, but with beta 5 it's not. anyone else have this problem?
thanks for any advice you can give, i'm pasting in the code below:
---------------------
#import "TitlePageView.h"
#import "PageViewController.h"
@implementation TitlePageView
@synthesize viewController;
- (id)initWithFrameCGRect)frame viewControllerPageViewController *)aController{
if (self = [super initWithFrame:frame]) {
self.viewController = aController;
self.backgroundColor = [UIColor blackColor];
UIImageView *image = [[UIImageView alloc] initWithImage:[UIImage imageNamed"00_titlepage.png"]];
[self addSubview:image];
[image release];
}
return self;
}
- (void)dealloc
{
[super dealloc];
}
- (void)touchesChangedWithEventUIEvent*)event
{
NSSet *touches = [event allTouches];
for (UITouch *myTouch in touches)
{
if (myTouch.phase == UITouchPhaseEnded) {
// touch end handler
if (myTouch.tapCount == 1) {
[self.viewController transitionToPageOne:self];
}
}
}
}
@end
thanks for any advice you can give, i'm pasting in the code below:
---------------------
#import "TitlePageView.h"
#import "PageViewController.h"
@implementation TitlePageView
@synthesize viewController;
- (id)initWithFrameCGRect)frame viewControllerPageViewController *)aController{
if (self = [super initWithFrame:frame]) {
self.viewController = aController;
self.backgroundColor = [UIColor blackColor];
UIImageView *image = [[UIImageView alloc] initWithImage:[UIImage imageNamed"00_titlepage.png"]];
[self addSubview:image];
[image release];
}
return self;
}
- (void)dealloc
{
[super dealloc];
}
- (void)touchesChangedWithEventUIEvent*)event
{
NSSet *touches = [event allTouches];
for (UITouch *myTouch in touches)
{
if (myTouch.phase == UITouchPhaseEnded) {
// touch end handler
if (myTouch.tapCount == 1) {
[self.viewController transitionToPageOne:self];
}
}
}
}
@end