UITouches not detecting.

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-06-08T02:47:27Z Indexed on 2010/06/08 2:52 UTC
Read the original article Hit count: 428

Filed under:
|
|

Hi,

My UItouches is not detecting in my Slideshow nib file. What is the problem? Can anyone help?


@class Slideshow;
@interface RootViewController : UIViewController{
PreferencesController *preferencesController;
Slideshow *slideshow;}

Slideshow Implementation

@implementation Slideshow
- (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
{
NSLog(@"touches begin");
}
- (void)viewDidLoad
{

UIImageView *frontView = [[UIImageView alloc] initWithFrame:self.view.bounds];
frontView.backgroundColor = [UIColor blackColor];
frontView.image = [UIImage imageNamed:@"apple.png"];
frontView.userInteractionEnabled = YES;

[self.view addSubview:frontView];

[frontView release];
}@end

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa