Im working on a music app and right now im having troubles with the switching view. (running XCode 3.2.2 and mac os x snow leopard) ok here is what im having trouble with.. when u open the app it starts out with a main menu and button u click button it opens another view then it has 2 buttons as of now if u click one of em it opens another view withs buttons that make sound. If u click the other one it should open another view. when u get to that view there is a button that says other menu but in the code im having errors this is the FourthViewController and is trying to go back to the SecondViecontroller my code is this in the .h the errors are right at
IBOutlet SecondViewcontroller *secondViewcontroller;
my errors say...
error: expected specifier-qualifier-list before 'SecondViewcontroller'
error: expected specifier-qualifier-list before 'SecondViewcontroller'
error: expected specifier-qualifier-list before 'SecondViewcontroller'
yes it has 3 of the same error in the .h my code is
#import <UIKit/UIKit.h>
#import "SecondViewcontroller.h"
@interface FourthViewController : UIViewController {
IBOutlet SecondViewcontroller *secondViewcontroller;
}
and in my .m
#import "FourthViewController.h"
#import "SecondViewcontroller.h"
@implementation FourthViewController
- (IBAction)goToSecondView{
[self presentModalViewController:secondViewcontroller animated:YES];
}
Thanks!!
IBOutlet SecondViewcontroller *secondViewcontroller;
my errors say...
error: expected specifier-qualifier-list before 'SecondViewcontroller'
error: expected specifier-qualifier-list before 'SecondViewcontroller'
error: expected specifier-qualifier-list before 'SecondViewcontroller'
yes it has 3 of the same error in the .h my code is
#import <UIKit/UIKit.h>
#import "SecondViewcontroller.h"
@interface FourthViewController : UIViewController {
IBOutlet SecondViewcontroller *secondViewcontroller;
}
and in my .m
#import "FourthViewController.h"
#import "SecondViewcontroller.h"
@implementation FourthViewController
- (IBAction)goToSecondView{
[self presentModalViewController:secondViewcontroller animated:YES];
}
Thanks!!