iOS 7.0 Camera, LiveCode 6.5 problems

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
joel.epsteinBUS31vi
Posts: 135
Joined: Thu Sep 13, 2012 10:25 pm

iOS 7.0 Camera, LiveCode 6.5 problems

Post by joel.epsteinBUS31vi » Sun Dec 15, 2013 5:49 pm

Hi all -

Perhaps I'm doing something wrong, but I'm having consistent problems with the following:

Code: Select all

on mouseUp
    set the lockloc of the templateimage to true
    set the width of the templateimage to "300"
    set the height of the templateimage to "400"
    set the left of the templateimage to "10"
    set the top of the templateimage to "10"
    mobilePickPhoto "camera"
end mouseUp
When running the above on my device (iPhone 4S running iOS 7.0.3 and LiveCode 6.5.0 (build 3009), the camera control does indeed come up, and I can take a photo, but when I get to the point that I tap "use photo" the application just quits.

Same behavior happens if I use "front camera" or "rear camera."

The odd thing is, however, that when I replace "camera" with "library," I'm able to successfully pick an image from my library and it appears on the card.

So, I'm wondering if there's some sort of bug with LiveCode 6.5 and iOS 7 when it comes to capturing an image. Or, perhaps, I need to do something different with captured images instead of images from the library? Any advice?

Thanks so much.

Joel

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: iOS 7.0 Camera, LiveCode 6.5 problems

Post by Dixie » Sun Dec 15, 2013 8:21 pm

Joel...

I was messing with this the other day.. this works for me on a device
Attachments
camerastuff.livecode.zip
(4.89 KiB) Downloaded 197 times

joel.epsteinBUS31vi
Posts: 135
Joined: Thu Sep 13, 2012 10:25 pm

Re: iOS 7.0 Camera, LiveCode 6.5 problems

Post by joel.epsteinBUS31vi » Sun Dec 15, 2013 9:11 pm

Hi Dixie -

Thanks so much for taking time to send this my way. It does indeed work. But... the first two times I tried it on my device it crashed. Odd... I'll reboot and try it again.

Peace.

Joel

Post Reply