Problem with iphonepickphoto

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
info26
Posts: 47
Joined: Tue May 17, 2011 10:14 am

Problem with iphonepickphoto

Post by info26 » Sat Jun 25, 2011 11:17 am

Hi all,

in my application the user can insert an image in a card but when I call iphonepickphoto the iPhone cakk the PotoPiker or the camera but I cannot selet any image Iphone seems loched, do anithings for exit you can push home button

This is my code There is somethink wrong?

Code: Select all


set the name of the templateimage to "myimage"
iphonepickphoto "library", 92,72
if the result is not empty then
put  image "myimage" into currentImage
delete image "myimage"
put currentImage into image "foto"
 end if
Tell me a suggest
Thank's

info26
Posts: 47
Joined: Tue May 17, 2011 10:14 am

Re: Problem with iphonepickphoto episode II

Post by info26 » Wed Jun 29, 2011 5:58 pm

Hi,


Now the imge import work, but i cannot store it in the correct image field

The image returned, is placed above every other object, seems suspended in the head and not into the desired field

Do you have any suggestions to solve the problem

Thank's

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

Re: Problem with iphonepickphoto

Post by Klaus » Wed Jun 29, 2011 6:20 pm

Hi info26,

maybe it will work, if you check the correct condtition?

Code: Select all

...
set the name of the templateimage to "myimage"
iphonepickphoto "library", 92,72

## The result is empty on success!  :-) 
if the result = empty then
  lock screen
  put img "myimage" into img "foto"
  delete img "myimage"
  unlock screen
end if
...
8)
Best

Klaus

info26
Posts: 47
Joined: Tue May 17, 2011 10:14 am

Re: Problem with iphonepickphoto

Post by info26 » Fri Jul 01, 2011 11:28 am

It works!
Great!

Thank

Klaus

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

Re: Problem with iphonepickphoto

Post by Klaus » Fri Jul 01, 2011 12:09 pm

info26 wrote:It works!
Go figure! 8)

Post Reply