Forum Xamarin Xamarin.iOS

Disable Background Screen Caching

RaymondKellyRaymondKelly USMember ✭✭✭

I need to disable the automatic iOS screen caching for my app. I see that there is not simple property to do this. I have been playing around with DidEnterBackground to display a splash screen, but nothing I try works.

public override void DidEnterBackground(UIApplication application)
{
UIView v = new UIView(new RectangleF(0, 0, 200, 200));
v.BackgroundColor = UIColor.Red;
window.AddSubview(v);
window.BringSubviewToFront(v);
}

Perhaps because my main app is a tabviewcontroller. Has anyone else been able to accomplish this?
Thanks.

Posts

Sign In or Register to comment.