Ever since I’ve upgraded to Xcode 4. I’ve got this error and i can’t seem to figure out whats wrong.
error: expected member name or ‘;’ after declaration specifiers [1]
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@interface SixViewController : UIViewController <AVAudioPlayerDelegate> {
IBOutlet UIImageView *play;
AVAudioPlayer *theAudio;
float progress;
NSTimer *timer;
IBOutlet UIProgressView *progressView;
int mainInt;
IBAction *timeOut;
}
It highlights the error on ibaction line
thanks
IBActionis intended as a return value for methods:… to tell Interface Builder that it is available for target/action connections. It is not intended as a variable data type, although you can get away with it when
IBActionis defined asvoid.However, you should use the correct data type for this variable, e.g.
idfor generic objects or maybeNSTimeIntervaldepending on what you’re actually trying to do here.