I am trying to recreate the demo that came with the sparrow frame work however I have ran into a problem. In the sparrow demo SPSound is used like this:
SPSound *stepSound = [[SPSound alloc] initWithContentsOfFile:@"step.caf"];
I have copied and pasted this into the barebone project (given to me in the zip folder) in a class method called MovieScene.m but when I build the app it sends me to the main.m highlighting:
retVal = UIApplicationMain(argc, argv, nil. NSStringFromClass([AppDelegate class]));
It is just this line that is causing me the problem.
SPSound *stepSound = [[SPSound alloc] initWithContentsOfFile:@"step.caf"];
Could i be missing an import or a library?
here is my header
#import <UIKit/UIKit.h>
#import "Scene.h"
@interface MovieScene : Scene
@end
and the method is:
#import "MovieScene.h"
@implementation MovieScene
{
SPMovieClip *_movie;
}
- (id)init
{
if ((self = [super init]))
{
SPSound *stepSound = [[SPSound alloc] initWithContentsOfFile:@"step.caf"];
}
return self;
}
I haven't touch xcode in a few years so this is me re learning xcode and objective c.