How to toggle menu button programmatically on IOS application

Hi everyone, I am making IOS application.

I want to toggle menu button like TileView or something on / off programmatically, is it possible?

If possible, could someone please tell me which file and how to edit it as a sample?