STEP 1:
Install the LWA SDK for iOS
Install the LWA SDK for iOS
Login with Amazon provides several standard buttons you can use to prompt users to login from your app. This section gives steps for downloading an official Login with Amazon image and pairing it with an iOS UIButton
.
UIButton
to your app.onLoginButtonClicked
. Leave the implementation blank for now. The Creating and Configuring View Objects and Start Developing iOS Apps Today on developer.apple.com tutorial includes steps on adding a button event.LWA_for_iOS.zip
file. Find your preferred button in both the 1x
and 2x
directories and extract them from the zip. Extract the _Pressed
version of your button if you want to show the button in a Selected state.Supporting Files
folder.setImage:forState
method on the UIButton
object. Follow these steps to modify the image attribute for your button:
In the Utilities window, open the Attributes Inspector.
2x
version: it will be loaded automatically on high density display (Retina) devices._Pressed
version of your button.