If you close the menu by dragging to the left and don't let go before the finger slides off the phones left side, the closeButton will stay 'visible' and thus disable buttons etc. in the right side of the phone. E.g. the top-right button in a navigationbar or disclosure buttons in a UITableView.
The problem seems to be HideMenu() and can be solved by replacing:
public void HideMenu()
{
if (mainView.Frame.X == 0)
return;
with:
public void HideMenu()
{
if (mainView.Frame.X == 0)
{
closeButton.RemoveFromSuperview();
return;
}
If you close the menu by dragging to the left and don't let go before the finger slides off the phones left side, the closeButton will stay 'visible' and thus disable buttons etc. in the right side of the phone. E.g. the top-right button in a navigationbar or disclosure buttons in a UITableView.
The problem seems to be HideMenu() and can be solved by replacing:
with: