Two quick things...
firstly, (a bit obvious, but) does the view have a superview or is it null?
Secondly, are you calling it from the main thread? Try wrapping the
RemoveFromSuperView in
InvokeOnMainThread(delegate
{
xxxxView.RemoveFromSuperView();
});
When I started i had lots of strange crashes from trying to modify the UI
from code that I didn't realise/forgot was operating in another thread.
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/RemoveFromSuperview-crashing-tp4384611p4388936.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch