yeah i did that , its working now , thanks for your help s8film40.
I also did it through threading like this:
- (void)viewDidLoad {
NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(backgroundMusic

object:nil];
[thread start];
...
...
...
}
-(void) backgroundMusic

id)sender
{
NSLog(@"I'm in ");
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"backgroundMusic.mp3" ofType:nil];
// Convert the file path to a URL.
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:filePath];
//Initialize the AVAudioPlayer.
audioPlayer = [[AVAudioPlayer alloc]
initWithContentsOfURL:fileURL error:nil];
// Preloads the buffer and prepares the audio for playing.
[audioPlayer prepareToPlay];
//audioPlayer.currentTime = 0;
[audioPlayer play];
[filePath release];
[fileURL release];
}