+ Start a Discussion
Ganesh GuturiGanesh Guturi 

How to show Salesforce login screen on my existing iOS app?

Hi All,

I have integrated "SalesforceMobileSDK-iOS-Distribution" in my existing iOS application but I am not getting from where to start it to get the login screens and which class gives me a login screen of salesforce.

My scenario is very simaple:
  1. I have a home screen in my application and from there I have to navigate/show thire (Salesforce) login screen.
  2. User will enter username and password.
  3. Salesforce shoud validate and redirect (back) to my HOME screen with token/sessionID.
  4. That  token/sessionID will use internally in my application.
I have integrated "SalesforceMobileSDK-iOS-Distribution" in my application but I'm unable to move forward. I have connected app info such as Client ID,Client secret and Callback url.
Can you please help on this. Thanks in advance.
Checkout the instructions and code samples on how to initiate the salesforce login via Mobile SDK. https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Distribution/blob/master/README.md