Showing and Hiding the Side Menu
Send Feedback

Glossary Item Box

Topic Overview

Purpose

This topic provides a conceptual overview of showing and hiding of the side menu on the IGSideMenuView™ control.

In this topic

This topic contains the following sections:


Introduction

Showing and hiding the summary

The IGSideMenuView provides a means for displaying a side menu, either interactively or programmatically. To show the side menu using interaction, the IGSideMenuView uses a long press gesture, which by default uses a minimum press duration of 0.02 second; however, this is reconfigurable using the minimumPressDuration property. Additionally, the long press gesture is available as an exposed property named longPressGesture.

Note: If you wish to disable the interactive exposing of the side menu, set the presentsWithGesture property to NO.

To programmatically show or hide a side menu, the IGSideMenuView provides two methods:

  • openSideMenu:
  • closeSideMenu:

When opening or closing the side menu the contentView animates into position. Using the transitionDuration property configure the animation’s duration.

The IGSideMenuView includes a delegate property that can be set to a class adopting the IGSideMenuViewDelegate. The delegate protocol allows the receiver to respond to contentView location changes as well as open and close events. The following optional methods are called by the IGSideMenuViewDelegate protocol:

  • sideMenuView:contentViewLocationDidChange: - the contentView has an updated location
  • sideMenuView:sideDidClose: - a side menu has closed
  • sideMenuView:sideWillClose: - a side menu will close
  • sideMenuView:sideDidOpen: - a side menu has opened
  • sideMenuView:sideWillOpen: - a side menu will open

Related Content

Topics

The following topic provides additional information related to this topic.

Topic

Purpose

The topics in this group cover enabling, configuring, and using the IGSideMenuView control’s supported features.