Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-01-2009, 08:22 PM   #5 (permalink)
smithdale87
Registered Member
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,555
Send a message via ICQ to smithdale87 Send a message via AIM to smithdale87 Send a message via Skype™ to smithdale87
Default

Here's my stuff:

Code:
MPMoviePlayerController* video = ...
Now, as you suggested:
Code:
NSLog(@"%@", [[video currentTime] description]);
This throws an EXC_BAD_ACCESS, my guess is because the method actually returns a primitive type, rather than an NSObject.

If I just do
Code:
NSLog(@"%@", [video currentTime]);
I also get an EXC_BAD_ACCESS

Now, if I do
Code:
NSLog(@"%.2f", [video currentTime]);
I get "0.00" printed out.

Now the question is, why does it print 0.00 rather than the actual currentTime?
smithdale87 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,781
Threads: 89,204
Posts: 380,601
Top Poster: BrianSlick (7,129)
Welcome to our newest member, lusifergreat
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:39 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.