문제

I've create a custom UIPickerView with "Done" button but I have trouble to remove it from screen. This is the result of create the UIPickerView: enter image description here

I've try to use this function:

public void removeAll(UIPickerView picker){
  this.toolbar.RemoveFromSuperview ();
  picker.RemoveFromSuperview ();
}

But the result is:enter image description here

도움이 되었습니까?

해결책

Resolved with:

public void removeAll(UIPickerView picker){
  this.toolbar.RemoveFromSuperview ();
  picker.Layer.Opacity = 0f;
  picker.Layer.Bounds = new  RectangleF(0,0,0,0);
  picker.RemoveFromSuperview ();
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top