Screen Shot 2016-05-23 at 10.21.58

This is the setting button that allows the user to purchase content or restore it.

Screen Shot 2016-05-23 at 10.22.03

After pressing on the settings button it will take the user to the page shown above here they can purchase or recover content.

Screen Shot 2016-05-23 at 10.22.10

After clicking one of the two options a notification will display asking the user if they would like to buy additional content. This is done by a ‘UIAlertController’. as you can see from the top of the code  when pressed it states ‘@”Purchase Additional Content?”.

After this action the user can choose to purchase the content by clicking on the button ‘Yes, Please” or “No, thanks”.

Screen Shot 2016-05-23 at 10.23.31

If the user has already purchased the additional content the the code at the top of the image

– (IBAction) restore{

    //this is called when the user restores purchases, you should hook this up to a button

    [[SKPaymentQueue defaultQueue] addTransactionObserver:self];

    [[SKPaymentQueue defaultQueue] restoreCompletedTransactions];

will come into action this will inform the user that they have already purchased the content and would ask i they would like to restore it.

Screen Shot 2016-05-23 at 10.23.46

This is the code that allows for the purchase to go through and also notifies the user that the purchase has been successful.