Great. I looked at a lot of other tutorials that didn't work or the XCode was out of date. The coding on this is much clearer and more logical. The one error I had is that ARC didn't allow explicit release. I replaced [audioPlay release] with [audioPlay stop]. Works fine and I'll work out the release later.
i am very new and have created this file with my own music 41KB in size but whenever i build, it keeps saying attaching to sound file but never opens??
thanks very much! only problem for me was osx's lame multitasking making it hard to follow, if it had snap like windows that would be brilliant. My screen is really small so I cant really just arrange but anyway great tut, it worked flawlessly after crossing my fingers.
@carlofabyss window snapping features on Mac, search the App store for a program called Moom, you'll love it! The window snapping thing was the one thing about Windows that I preferred over Mac.
i had 1 error. In the part after we put our .mp3 file name (i had a .wav file), we entered this: [[NSBundle mainBundle] resoursePath]]]; It is telling me it is incorrect because "resource path" is not found and to (return type defaults to 'id'). I also put different fonts, a title, and background colors. But the fonts don't show and sound does not play. Now my app wont even come up. Can anyone tell me whats wrong?
Great. I looked at a lot of other tutorials that didn't work or the XCode was out of date. The coding on this is much clearer and more logical. The one error I had is that ARC didn't allow explicit release. I replaced [audioPlay release] with [audioPlay stop]. Works fine and I'll work out the release later.
MediaXAP 1 week ago
Thanks for your video!!!
What if the mp3 or wav file that I want to play is in my webpage server?
nracino 2 weeks ago
NICE JOB good tutorial keep it up...
DancesofDragons 3 weeks ago
are you using 4.21? mine was filled with errors and i even double checked it... what do i do?
trekstenen1 1 month ago
@trekstenen1 This was just 4.0.
GTOTechnology 1 month ago
@GTOTechnology
ok. because i am new at this and it´s really hard to figure out how to use it when all the tutorials are 4.2 or lower...
thanks for you're answer :D
trekstenen1 1 month ago
the .xib are not in my Xcode Why???
Please help my.
superturtle2th 1 month ago
2:29 - 'In my penis' LOL!!!!!!!
trickyart 2 months ago 3
@trickyart WOW! I never noticed that. Oops O.o
GTOTechnology 1 month ago
an error pops up on release
why?
TheKencats 2 months ago
@TheKencats i get the same error.... have you fixed it?
Simenoyen 2 months ago
how do u get file's owner?
because i cant find it or when i search it it does not come up
TheKencats 2 months ago
can you please show us how to do this in the new xcode 4.2?
i need this very bad. thanks
iJassin 2 months ago
Very amazing xcode tutorial! i like it how you explained what things meant. keep up the good work. subscribed.
MAGAMEZ1 2 months ago
subscibed thanks
UATimka 2 months ago
great tutorial. but how do you create multiple buttons that all play different sound files?
FeFsCloset 3 months ago in playlist Liked videos
awsome tutorial. definitely given me a nice way into this.
gurmokh 3 months ago
For some reason I get an error at [audioPlayer release];
I have know idea why.
23randon07 3 months ago
best iphone tutorial that i came acros :]
genoshajames 4 months ago in playlist iphone
Fantastic sound tut! Thank you.
dinkypoodle 4 months ago
Does this tutorial fit also when playing a stream from an online radio. if we have a shoutcast server and we want to play the radio?
Does it require different coding or this is ok?
jetonr 5 months ago
great tutorial it works fine but how it's done if you want to put several MP3?
sorry for my English, but I'm French lol
SerialiPh 5 months ago
i am very new and have created this file with my own music 41KB in size but whenever i build, it keeps saying attaching to sound file but never opens??
gold125 6 months ago
We Know Everything About You Gray Ad*** MWAHAHAHAHAHAHAHAHAHAHA
bloxxer1234 6 months ago
@GTOTechnology:
Very useful in my project!
Also to let you know it works with .CAF audio format and [ ] are generally called SQUARE brackets in programming lingo
dhanashreearole 7 months ago
thanks very much! only problem for me was osx's lame multitasking making it hard to follow, if it had snap like windows that would be brilliant. My screen is really small so I cant really just arrange but anyway great tut, it worked flawlessly after crossing my fingers.
carlofabyss 7 months ago
@carlofabyss window snapping features on Mac, search the App store for a program called Moom, you'll love it! The window snapping thing was the one thing about Windows that I preferred over Mac.
hypnospirit 7 months ago
Thank's a lot for this tutorial, it worked great for me !
tibounise 7 months ago
NS stands for NeXTSTEP, the language on which Apple's Mac OS X is based.
crystalsfilms 7 months ago
i had 1 error. In the part after we put our .mp3 file name (i had a .wav file), we entered this: [[NSBundle mainBundle] resoursePath]]]; It is telling me it is incorrect because "resource path" is not found and to (return type defaults to 'id'). I also put different fonts, a title, and background colors. But the fonts don't show and sound does not play. Now my app wont even come up. Can anyone tell me whats wrong?
eddievarsity 7 months ago
I just made my first app following your walk through. Fantastic job, great instructions!
apentzer 7 months ago
MATE YOU ARE MY NEW SUPERHERO!!!!
tejoextremo 7 months ago
IB means Interface Builder...
mahnax 7 months ago
plz plz plz send me the code mine wont work and i really need to get the project done
nbi00 7 months ago
it said i had 11 errors
i did the hole tutorial exactly 3 times and it said i had 11 errors every project.
nbi00 7 months ago
hi
i have a problem with the programm:
i start the app in the iOS-Simulator and click start
then xcode shows me the line
" audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL: error: url error:&error]; " in a green backcolor and a the end of the line xcode says :
"Thread 1: Program received signal: "SIGABRT".
How can i fix that?
HockeyKeeper99 8 months ago
Thanks for this
houxy 8 months ago
How do you change the background image?
ANT0NAMOR 8 months ago
I have all the code right but i dont hear anything. It is really anoying. I have tryed everything
pietersbest929 8 months ago
Hi Dude... awesome tutorial...
Now how would i add a second button with a second sound.. and so on...honestly i believe i have tried all the obvious but just can't seem to do it :(
please help>begineer
sonofpele84 8 months ago
Thank god Im aloud to pause it.
DansOffRoadAdventure 9 months ago