Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning iOS 4 Application Development
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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.
 
Old November 21st, 2011, 04:16 PM
Registered User
 
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.
 
Old November 22nd, 2011, 11:51 AM
Friend of Wrox
 
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





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 09:07 AM
Chap 13 ExampleServlet granola911 JSP Basics 0 October 20th, 2003 03:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.