Community
Topic: iOS SDK
unrecognized selector (SOLVED)
The Xamarin example worked fine here for me, but embedding things in my more complex prototype resulted in the following error:
[AppDelegate window]: unrecognized selector sent to instance ...
Apparently Pikkart calls the window property at some point and my setup managed to override this? Not sure. Anyway, if someone runs into this here is the fix to place in the application delegate:
// https://forums.xamarin.com/discussion/68914/forms-app-on-ios-appdelegate-does-not-have-access-to-window-selector
[Export("window")]
public UIWindow GetWindow() {
return UIApplication.SharedApplication.Windows[0];
}
No replies to this post