Constant Expected "{" before ")" token
- by Thijs
I've got a little problem. I am applying some changes to an iOS program i wrote, but I've struck a problem. I constantly get a "Expected '{' before ')' token" warning, but my coding skills aren't good enough to find the problem. A little help would greatly be appreciated.
#import "Search.h"
#import "RootViewController.h"
//button
- (IBAction)buttonPressed)sender{
RootViewController *newview = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
[UIView setAnimationTransition:UIViewAnimationTransitionFl ipFromRight forView:self.view cache:YES];
[self.view addSubview:newview.view];
[UIView commitAnimations];
@implementation Search
@end