Take a picture iPhone camera

paolo mazza mazzapaoloitaly at gmail.com
Wed Jan 4 09:43:33 EST 2012


Hi all,
still I do not know hot to click the button of the camera in order to
take the picture automatically.

Then, using this script  in a button of a  iOS App ...

on mouseUp

   iPhonePickPhoto camera

   put the long ID of the last image of this card into NUMEROIMMLONG

   iphoneExportImageToAlbum NUMEROIMMLONG

   delete NUMEROIMMLONG

   if the result is not empty then
      answer the result
   else
      answer "OK"
   end if

end mouseUp

... at the end of the process I get tha picture saved in the camera
roll folder but ...

1 -  the picture is 90° turned right (I took a "portrait" picture and
I got a landscape picture)

2 - the "delete" command works in the IDE but it does not work in the iPhone


Any idea? Thanks a lot

Paolo




More information about the use-livecode mailing list