I'm totally new to the IOS app creation game, so be gentle. I'm getting the expected expression error down at the autorelease section. If someone could help me out here, that'd be great.
// Load images
NSArray *imageNames = @[@"fold1.png", @"fold2.png", @"fold3.png", @"fold4.png",
@"fold5.png", @"fold6.png", @"fold7.png", @"fold8.png",
@"fold9.png", @"fold10.png", @"fold11.png", @"fold12.png",
@"foldclear.png"];
NSMutableArray *images = [[NSMutableArray alloc] init];
for (int i = 0; i < imageNames.count; i++) {
[images addObject:[UIImage imageNamed:[imageNames objectAtIndex:i]]];
}
// Normal Animation
UIImageView *animationImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 108, 324, 460)];
animationImageView.animationImages = images;
animationImageView.animationDuration = 0.5;
animationImageView.animationRepeatCount = 5;
[self.view addSubview:animationImageView];
[animationImageView startAnimating];
// Add swipeGestures
UISwipeGestureRecognizer *oneFingerSwipeLeft = [[[UISwipeGestureRecognizer alloc]
initWithTarget:self
action:@selector(oneFingerSwipeLeft:) autorelease:];
[oneFingerSwipeLeft setDirection:UISwipeGestureRecognizerDirectionLeft];
[[self view] addGestureRecognizer:oneFingerSwipeLeft];
UISwipeGestureRecognizer *oneFingerSwipeRight = [[[UISwipeGestureRecognizer alloc]
initWithTarget:self
action:@selector(oneFingerSwipeRight:) autorelease:];
[oneFingerSwipeRight setDirection:UISwipeGestureRecognizerDirectionRight];
[[self view] addGestureRecognizer:oneFingerSwipeRight];
}
autoreleasecall is out of place as you are missing closing square brackets. Bu in general, whenever you encounter any kind of error and need assistance at solving it, please provide the full error text as well as a description of how you reproduce it (in this case - during the build).