In app purchase
Hello everyone. I'm an italian developer, so excuse me for my English.
I'm updating my iPhone app, and I decided to add one in app-purchase.
So, in my first view I have two buttons, one for the audio and one for the videos.
How can I do to "block" the access to the video section until the user buy the in app purchase?
I've already done the process on iTunes Connect, I add the Store Kit framework, I just need the code for the video button. When the user clicks it, I want the in app purchase alert appears, and if the user doesn't want to buy it, the app returns to the first view.
Thanks in advance.
|