Creating and implementing the TwitterSignInPageRenderer (iOS)
In this section, we'll take a look at how to create the TwitterSignInPageRender
class for the iOS section of our TrackMyWalks
solution, which will essentially contain platform-specific methods relating to the iOS platform. These will communicate with our Twitter API in order to display the Twitter sign in dialog within our TwitterSignInPage
XAML ContentPage
.
Let's start by creating the TwitterSignInPageRenderer
class for our TrackMyWalks
app by performing the following steps:
- Ensure that the
TrackMyWalks
solution is open within the Visual Studio for Mac IDE. - Next, within the
TrackMyWalks.iOS
project, right-click on theCustomRenderers
folder, and chooseAdd | New File...
from the pop-up menu. - Then, create a new
Empty Class
calledTwitterSignInPageRenderer
within theCustomRenderers
folder, as you did in the section entitled Creating and implementing the CustomMapRenderer (iOS) within Chapter 7, Adding Location-Based Features Within...