Use of drawer frame (RPM)

Source: Internet
Author: User

Drawer compared to everyone can often see, the advantages of needless to mention. Straight to the theme, Mmdrawercontroller (Https:// is I think a more useful drawer open source implementation.

Specific Use method

(1) Pod ' Mmdrawercontroller ', ' ~> 0.5.7 ', added in your podfile, and then run pod install to the Celestial network about a cup?? The kung fu will be OK.

(2) Introduction of the project

#import "MMDrawerController.h"

(3) Delegate

Uinavigationcontroller * Lnav=[[uinavigationcontroller alloc] INITWITHROOTVIEWCONTROLLER:TVC];

Uinavigationcontroller * Cnav=[[uinavigationcontroller alloc] INITWITHROOTVIEWCONTROLLER:TB];

Uinavigationcontroller * Rnav=[[uinavigationcontroller alloc] INITWITHROOTVIEWCONTROLLER:RTB];

Self.drawercontroller = [[Mmdrawercontroller alloc] Initwithcenterviewcontroller:cnav



(4) Simple configuration

[Self.drawercontroller setrestorationidentifier:@ "Mmdrawer"];

[Self.drawercontroller setmaximumrightdrawerwidth:200.0];

[Self.drawercontroller Setopendrawergesturemodemask:mmopendrawergesturemodeall];

[Self.drawercontroller Setclosedrawergesturemodemask:mmclosedrawergesturemodeall];

It's better to go long.

Use of drawer frame (RPM)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.