Forum Xamarin Cross Platform with Xamarin

How to load a device specific page

JourneymanJourneyman GBMember ✭✭
edited February 2018 in Cross Platform with Xamarin

This seems like it ought to be extremely easy but I've failed so far ..

in my App page on launching Forms app I'm using the Device.iOS to determine a page to go to

the page I've created, because it uses CoreLocation which is ONLY available to iOS, has to live within the [project].iOS directory ...

however, I cannot find any way to get my project to give me a path to class files in the iOS location - it only shows me [project].Droid as a reference

Don't understand what's gone wrong?

EDIT - ok I just went and tried an older project and it works fine!

So, something I've done in my new project means I've lost the ability to reference [project].iOS - any suggestions ... ?

Best Answer

Answers

  • JourneymanJourneyman GBMember ✭✭

    I've just created a brand new project and had exactly the same thing happen

    It surely must be some combination of the changes I'm making to incorporate Xamarin.Forms.Maps?

    Driving me nuts, wasted an entire evening just to get back to where I started

  • JamesLaveryJamesLavery GBBeta, University ✭✭✭✭✭
    I'm struggling to understand your project architecture. Are you using a shared project or PCL?

    Does the project in which you want to use the iOS code have the iOS project as a reference?
  • JourneymanJourneyman GBMember ✭✭
    Accepted Answer

    Was just a rookie error, sorry

Sign In or Register to comment.