Introduction
Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows phone, Android, iOS). In Xamarin platform, the code sharing concept is used. In Xamarin Studio, Visual Studio is also available.
Browse Code here.
Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows phone, Android, iOS). In Xamarin platform, the code sharing concept is used. In Xamarin Studio, Visual Studio is also available.
Browse Code here.
Prerequisites
- Xamarin Studio.
- Xcode.
The steps given below are required to be followed in order to read a text file in Xamarin iOS, using Xamarin Studio.
Step 1
Go To Xamarin Studio.
Click New Solution—> select iOS—>select App--> Choose single View App. Afterwards, click Next.
Step 1
Go To Xamarin Studio.
Click New Solution—> select iOS—>select App--> Choose single View App. Afterwards, click Next.
Step 2
In this step, configure your app. Give the app a name (Ex:sample), Organization Identifier, and afterwards, click Next.
In this step, configure your app. Give the app a name (Ex:sample), Organization Identifier, and afterwards, click Next.
step 3
In this step, give your project a name (Ex: Sample) and solution name (Ex: Sample). Give path of your project and click Create.
Step 4
Subsequently, go to the solution. In there, get all the files and sources in your project. Now, select Main.storyboard and double click to open Main.storyboard page.
Step 5
After opening the Main.storyboard, you can design this page, as per your desire.
Step 6
Now, go to the Toolbox window and scroll down. You will see all the tools and controls. Just drag and drop the Button.
Next, you need to align the Button, using constraints.
Step 7
Now, go to the Properties window. Select the Button and give it a name (Ex:btnRead).
Step 8
You need to drag and drop the label. Next, you need to align the Label, using constraints.
Step 9
Now, go to the Properties window and select another Label (Ex:lblDisplay).
Step 10
In this step, go to the ViewController.cs page and add the namespace as given below.
ViewController.cs
Now, go to the Properties window and select another Label (Ex:lblDisplay).
Step 10
In this step, go to the ViewController.cs page and add the namespace as given below.
ViewController.cs



Join the conversation! Your thoughts help the community grow.