3

In my app I am using media picker when I click on a button media picker will appear. After selecting the required song I have to press done button to dismiss that picker view.
Instead of that can I have a any chance to dismiss picker view after selecting song without pressing done button?

Thanks in advance!

enter image description here

Ankit Srivastava
  • 12,347
  • 11
  • 63
  • 115
ganesh manoj
  • 977
  • 10
  • 24

2 Answers2

2

Alternative , You can use allowsPickingMultipleItems property. Set it to NO.

Maulik
  • 19,348
  • 14
  • 82
  • 137
0

I guess the idea behind not having automatic disappearance of imagePicker from Apple is that Apple wants its users to make a different choice if something is selected by mistake. And mistakes happen quite offen as devices are touch based and accidental touches are quite frequent.

I don't have solution for your question but thought I should share my reasoning with others and seek their opinion on this.. :|

Ankit Srivastava
  • 12,347
  • 11
  • 63
  • 115