Ryan Shine
Ryan Shine

Reputation: 522

How do I create a cross platform Xamarin mobile app project?

i expected there is many devote for me for this post, however this is only the way to solve my problem since the xamarin document is too messy to me, it do not provide a one straight line walk through to me.

Now what is my question is, how do i create the project which can cross the both platform. I downloaded the xamarin, however the xamarin does not provide me any project which able to target both platform as the picture stated

enter image description here

What i am able to do is, create the project in my visual studio with targeting IOS, however in the xamarin studio itself unable to achieve it. Since it done by this, is it i need to code IOS in my visual studio, and code android in the xamarin? If that so, what is the purpose of the cross platform?? Since i have to code in two studio, what i want is just code in one studio, and deploy on two platform

Upvotes: 0

Views: 339

Answers (2)

iamIcarus
iamIcarus

Reputation: 1438

You can have a Xamarin.Android and Xamarin.iOS projects in a single solution and have code sharing with a common business logic using MVVM design pattern , PCL (Portable Class Libraries) and Shared Projects. For the case of platform specific code in a shared code , inversion of control can be used

You try to squeeze as much as common code behind as possible , so you will only have to implement the GUI twice (Android and iOS)

Or you can use Xamarin.Forms codebase to create a single UI for all supported platforms

Upvotes: 2

Yksh
Yksh

Reputation: 3306

You must need a Mac in network to develop Xamarin.iOS project in both native or cross-platform manner.

You can use Xamarin Studio to build both Android and iOS in portable or shared way.

By using VS you can point your project to Windows Phone too.


Reference :

Upvotes: 0

Related Questions