开发者

iPhone - is there a way to detect where a picture was selected from?

When Using UIPickerController I have two choices on my App:

  • take a picture
  • take a picture from the library (photo album)

but the library itself is composed by two p开发者_运维百科arts:

  • camera roll
  • other photo albums

Is there a way to detect if the picture was selected from the camera roll or from the other photo albums?

thanks for any help.


I don't think the API allows this. But you can always check the file's time stamp. If it's very new (a couple of sec before), probably it's not a library picked file. Just a trick, may not be foolproof though.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜