Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning iOS 4 Application Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning iOS 4 Application Development
This is the forum to discuss the Wrox book Beginning iOS 4 Application Development by Wei-Meng Lee; ISBN: 978-0-470-91802-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning iOS 4 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 21st, 2010, 01:13 AM
Registered User
 
Join Date: Mar 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chap. 13 Try It Out Accessing the Videos in the Photo Library

Hi, there.
I'm trying to follow this "TRY IT OUT: Accessing the Videos in the Photo Library"
But, the sample code didn't work. :'(
I'm developing the application on iOS 4.2 (iPod touch 4th.)

I can pick my video, but it doesn't play back.
Please help me.

Thank you.
Reply With Quote
  #2 (permalink)  
Old November 21st, 2011, 04:16 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 13 - Photo and Video Library

I'm ok with the photo library working but when I get to the Try It Out for Access the Videos in the Photo Library I get a warning on this line:

Code:
NSArray *mediaTypes = [NSArray arrayWithObjects:kUTTypeImage, kUTTypeMovie, nil];
The warning is 'Passing argument 1 of 'arrayWithObjects:' from incompatible pointer...'

I get the same error when trying to run the sample code from the book. Haven't figured it out yet.
Reply With Quote
  #3 (permalink)  
Old November 22nd, 2011, 11:51 AM
Friend of Wrox
Points: 1,671, Level: 16
Points: 1,671, Level: 16 Points: 1,671, Level: 16 Points: 1,671, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

You have to cast the const CFStringRef to an NSString.

Code:
NSArray *mediaTypes = [NSArray arrayWithObjects:(NSString *)kUTTypeImage, //etc.
Bob
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
(Chap. 7) Creating Thumbnails/Photo Galleries SmoothAl BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 3 March 2nd, 2010 06:27 AM
Ch. 13 deleting a photo album? Rachel BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 January 1st, 2009 01:23 PM
Chap 13 PAGE 514,515 ninjamonk BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 October 13th, 2006 10:07 AM
Chap 13 ExampleServlet granola911 JSP Basics 0 October 20th, 2003 04:49 PM



All times are GMT -4. The time now is 02:40 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.