[MonoTouch] Can MonoTouch give compiler warnings when using API that requires a higher iOS version then Im targetting?

HairyJohn mail at johnhair.com
Tue Mar 6 16:09:09 UTC 2012


Hi Rolf,
My extensions unit would have appropriate generic style methods that
contained pragma warning exclusion wrappers:

#pragma warning disable
// Code that runs iOS 5 specific code when targetting iOS4
#pragma warning restore

Solution wide I would enable break on warnings (its a VS option but Im
guessing Mono has it too, or break on specific warnings etc).

Cheers
Hairy

--
View this message in context: http://monotouch.2284126.n4.nabble.com/Can-MonoTouch-give-compiler-warnings-when-using-API-that-requires-a-higher-iOS-version-then-Im-targe-tp4445734p4450365.html
Sent from the MonoTouch mailing list archive at Nabble.com.


More information about the MonoTouch mailing list