title: How to Enable Cookies in UIWebView for iOS Swift
body: <p>I have an app that uses Instagram Integration.  The App has been in the App Store for a few months with multiple version all working fine.  Suddenly, the latest version I submitted to Apple was rejected because apple doesn't like the fact that Safari is launched for a User to Login to Instagram.  As per their words, they care about the user experience.</p>
  
  <p>The problem is I need to request an Access Token and that is how I know it has to be done.  Since my App was rejected, I can't be the only one who may have faced this so I thought I should ask.  Does any one know of some other method perhaps I don't know of whereby you can authenticate a users Instagram and get the required Access Token, without Launching Safari?</p>
  
  <p>EDIT #1: The only other option I can think of is to use a UIWebView within my app to open the Instagram authentication process. I tried this and it just seems to be mad slow and the callback process to my app doesn't seem to initiate.  So I don't know if I'm doing something wrong.</p>
  
  <p>EDIT #2: Doing more research as to why the Instagram login is not working in my UIWebView, it seems to be something with how the UIWebView handles Cookies, apparently it does not recognize Cookies or something along those lines.  I still don't know what exactly to do to fix this, so if anyone has a solution please provide.</p>