0
votes

Is there any way to create a Xamarin Forms app targeting iOS Universal Apps like you can with Xamarin?

http://developer.xamarin.com/guides/ios/getting_started/hello,_ipad___universal_apps/

If not what is the best way to handle targeting both iPhone and iPad?

1

1 Answers

1
votes

So far I've been leveragign the Device.Idiom functionality.

We're using MVVM light, so I have a common ViewModel and I've extended the INavigation Service so that i can configure it with both a Phone & Tablet page.

Then when I call

_navigationService.NavigateTo(PageKey, ViewModel); 

The navgiation service will lookup the key in the configuration dictionary, and decide based on the idiom (Phone / Tablet) whether to the return the PhoneVersion or TabletVersion of the page.

http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/platform-specifics/