Advertisement
priore

Add a Gift Shop with your personalized images

Mar 2nd, 2013
1,042
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // With MYZazzleStore service it's really simple to add a gift shop to your application for your users.
  2. // With a few lines of code you can give your users the opportunity to purchase T-shirts personalized
  3. // mugs, iphone / ipad covers and other types of gifts. It also allows you to increase financial gains
  4. // and increase the popularity of your products.
  5. //
  6. // Is really very simple to add to your application a gift shop to offer your users.
  7. // With few lines of code you can give your users the opportunity to purchase T-shirts personalized
  8. // mugs, iphone / ipad cover and other types of gifts, also allowing you to add a further financial
  9. // gain and increasing the popularity of your products.
  10. //
  11. // In this version there is a detailed example of how to use the framework, but just use these
  12. // simple commands, listed below, to get full functionality :
  13. //
  14. // Product IDs
  15. // 0    iphone 3G/3GS covers
  16. // 1    iphone 4/4S cover
  17. // 2    greetings card
  18. // 3    mousepad
  19. // 4    mugs
  20. // 5    pillows
  21. // 6    stickers
  22. // 7    t-shirt for ladies
  23. // 8    t-shirt for man
  24. //
  25. string productID = 1;
  26. string youID = @"1234567"; // optional;
  27. string imageUri = @"http://funnycatwallpapers.com/wp-content/uploads/2012/08/white-bengal-cats.jpg";
  28. string uri = [NSString stringWithFormat:@"http://www.prioregroup.com/services/myzazzlestore.aspx?a=%@&p=@d&i=%@", youID, productID, imageUri];
  29. NSURL *url = [NSURL URLWithString:uri];
  30. [[UIApplication sharedApplication] openURL:url];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement