Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

technekai

macrumors newbie
Original poster
Feb 28, 2008
20
0
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)initWithFrame:(CGRect)frame viewController:(PageViewController *)aController{
if (self = [super initWithFrame:frame]) {
self.viewController = aController;

self.backgroundColor = [UIColor blackColor];

UIImageView *image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:mad:"00_titlepage.png"]];
[self addSubview:image];
[image release];
}
return self;
}


- (void)dealloc
{
[super dealloc];
}


- (void)touchesChangedWithEvent:(UIEvent*)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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.