Taking a photo (Iphone)

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Bucky
Posts: 2
Joined: Wed Feb 23, 2011 2:25 am

Taking a photo (Iphone)

Post by Bucky » Wed Feb 23, 2011 2:32 am

I was wondering if somebody could help me out with creating a simple code that when a button is pressed it simply takes a photo.
I am working on a App.

witeowl
Posts: 45
Joined: Mon Feb 21, 2011 3:02 am

Re: Taking a photo (Iphone)

Post by witeowl » Wed Feb 23, 2011 7:53 am

I can't help, but I just want to make sure you're not trying to use a volume button to do this. It's against the terms of the iOS SDK, for some inane reason.

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Taking a photo (Iphone)

Post by Klaus » Wed Feb 23, 2011 12:35 pm

Hi Bucky,

why does noone ever seem to read the read me and/or release notes???

Menu: Help -> iOS Release Notes (page 17):
...
Photo Picking Support
You can hook into the iPhone's native photo picker by using iPhonePickPhoto source, [ maxwidth, [ maxheight ] ]
Here source is one of:
• • •
library – the photo is taken from the device's photo library
camera – the photo is taken using the device's camera
album – the photo is taken from the device's recent camera roll
The maxwidth and maxheight parameters constrain the maximum size of an image.
The chosen image will be scaled down proportionally to fit within the size specified.
If either size specified is 0, then the parameter is ignored.
...

Best

Klaus

P.S.
I will move this thread tot he iOS forum now.

Bucky
Posts: 2
Joined: Wed Feb 23, 2011 2:25 am

Re: Taking a photo (Iphone)

Post by Bucky » Thu Feb 24, 2011 4:20 am

Cool, but unfortunately i am using a trial version and i guess it doesn't allow me to click and view on the iOS Release notes.

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Taking a photo (Iphone)

Post by Klaus » Thu Feb 24, 2011 12:02 pm

Hi Bucky,
Bucky wrote:Cool, but unfortunately i am using a trial version and i guess it doesn't allow me to click and view on the iOS Release notes.
Please try it instead of guessing!
The trial version is limited in some aspects but definitively NOT in viewing any documentation!


Best

Klaus

Post Reply