xamarin.ios - Monotouch - iPad Simulator issue with UIPopoverController -
i'm getting following error, on simulator , not on ipad itself!
monotouch.foundation.monotouchexception has been thrown "objective-c exception thrown. name: nsgenericexception reason: - [uipopovercontroller dealloc] reached while popover still visible."
has got idea how solve this?
this causes problem...
private void getpopsups() { uipopovercontroller uipoc = new uipopovercontroller(new popcontroller()); uipoc.popovercontentsize = new sizef(200f, 300f); uipoc.presentfromrect (new rectanglef(0,0, 200, 300), this.view, uipopoverarrowdirection.up, true); }
this solves (for me)..
uipopovercontroller uipoc; private void getpopsups() { uipoc = new uipopovercontroller(new popcontroller()); uipoc.popovercontentsize = new sizef(200f, 300f); uipoc.presentfromrect (new rectanglef(0,0, 200, 300), this.view, uipopoverarrowdirection.up, true); }
Comments
Post a Comment