Code between #if __IOS__ shows up like it's commented out.

BasJansen.1375BasJansen.1375 NLMember

I'm developing an app for iOS and Android and I want specific pieces of code to only run for iOS or android. SO im using a condition to check if the device is an iOS device or an Android device.
But my code between the #if and #endif appears like it's commented out.
How can I resolve this since it makes the code pretty much unreadable and the indentation also doesn't work.

image

I am using Xamarin Studio 5.8 on Mac OS X 10.10.2

Posts

  • adamkempadamkemp USInsider, Developer Group Leader mod

    I'm guessing that the editor isn't aware of implicit/built-in defines. We use custom defines (configured in the project settings), and it works fine if you do that because the editor can know which ones are active.

Sign In or Register to comment.