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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-29-2010, 01:42 PM   #5 (permalink)
Whitehk
Registered Member
 
Whitehk's Avatar
 
Join Date: Feb 2010
Posts: 119
Whitehk is on a distinguished road
Default

Quote:
Originally Posted by JasonR View Post
Since you are doing something that's not standard, there's not going to be sample code. So your choice is either try it yourself, or wait until someone else does and posts it. (If you can wait 3-4 weeks, that's when I get my iPhone 4).

If I were you, I would play with the devices array, taking each element and setting flashMode until one of them turned on the flash. IT might look something like this:

Code:
NSArray *devices = [AVCaptureDevice devices];
for (AVCaptureDevice *device in devices) {
     device.flashMode = AVCaptureFlashModeOn;
}
Keep in mind, I'm guessing since I don't have the hardware, but see if that gets you started.
Ok. I will look at it and see if I can get it working. Thanks for your help.
Whitehk is offline   Reply With Quote
 

» Advertisements
» Online Users: 360
18 members and 342 guests
baja_yu, brainspoon, Creativ, cristofercolmbos, Davor, Domele, iconomania, jbro, mediaspree, Meoz, NSString, Paul Slocum, speed4mee, spiderguy84, toolifog, TylerBetable, UconnAggie
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,551
Threads: 94,078
Posts: 402,728
Top Poster: BrianSlick (7,990)
Welcome to our newest member, hongto24
Powered by vBadvanced CMPS v3.1.0

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