mutualmobile / MMDrawerController

A lightweight, easy to use, Side Drawer Navigation Controller
MIT License
6.76k stars 1.38k forks source link

Disable swipe #494

Open fariz-siracli opened 7 years ago

fariz-siracli commented 7 years ago

Hello guys. Is it possible to disable open/close by swiping? That's i want it open/close only by button tap. Thank you

sebastienkb commented 7 years ago

+1 Did you find a solution @fariz-siracli ?

fariz-siracli commented 7 years ago

Nope

graphiclife commented 7 years ago

The openDrawerGestureModeMask and closeDrawerGestureModeMask properties do what you want!

fariz-siracli commented 7 years ago

Thank you very much. One more issue please. I used MMDrawerController in Swift app. As a crash report i got this. But i do not understand what it means :( My app name is NewGoMapV2.0. Why this happen.

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000 Triggered by Thread: 0

Thread 0 name: Thread 0 Crashed: 0 libobjc.A.dylib 0x24cffaf6 objc_msgSend + 22 (objc-msg-arm.s:418) 1 UIKit 0x29c81898 -[UINibStringIDTable dealloc] + 76 (UINibStringIDTable.m:43) 2 libobjc.A.dylib 0x24d0cf8a objc_object::sidetable_release(bool) + 150 (NSObject.mm:1451) 3 UIKit 0x29c7c07c -[UINibDecoder dealloc] + 368 (UINibDecoder.m:191) 4 libobjc.A.dylib 0x24d0cf8a objc_object::sidetable_release(bool) + 150 (NSObject.mm:1451) 5 UIKit 0x29b66fa6 -[UINibStorage .cxx_destruct] + 26 (UINib.m:63) 6 libobjc.A.dylib 0x24cf1f3c object_cxxDestructFromClass(objc_object, objc_class) + 116 (objc-class.mm:406) 7 libobjc.A.dylib 0x24cfbe4a objc_destructInstance + 34 (objc-runtime-new.mm:6663) 8 libobjc.A.dylib 0x24cfbe6e object_dispose + 14 (objc-runtime-new.mm:6682) 9 libobjc.A.dylib 0x24d0cf8a objc_object::sidetable_release(bool) + 150 (NSObject.mm:1451) 10 libobjc.A.dylib 0x24cf1f3c object_cxxDestructFromClass(objc_object, objc_class) + 116 (objc-class.mm:406) 11 libobjc.A.dylib 0x24cfbe4a objc_destructInstance + 34 (objc-runtime-new.mm:6663) 12 libobjc.A.dylib 0x24cfbe6e object_dispose + 14 (objc-runtime-new.mm:6682) 13 UIKit 0x29b67a16 -[UINib dealloc] + 178 (UINib.m:197) 14 libobjc.A.dylib 0x24d0cf8a objc_object::sidetable_release(bool) + 150 (NSObject.mm:1451) 15 UIKit 0x29a227c6 -[UIViewController _loadViewFromNibNamed:bundle:] + 658 (UIViewController.m:2321) 16 UIKit 0x297f79d6 -[UIViewController loadView] + 142 (UIViewController.m:2435) 17 UIKit 0x296bda0a -[UIViewController loadViewIfRequired] + 150 (UIViewController.m:2534) 18 UIKit 0x296bd958 -[UIViewController view] + 24 (UIViewController.m:2595) 19 NewGoMapV2.0 0x000975d0 -[MMDrawerController setDrawerViewController:forSide:] + 480 (MMDrawerController.m:872) 20 NewGoMapV2.0 0x00093d58 -[MMDrawerController initWithCenterViewController:leftDrawerViewController:rightDrawerViewController:] + 116 (MMDrawerController.m:168) 21 NewGoMapV2.0 0x00093db4 -[MMDrawerController initWithCenterViewController:leftDrawerViewController:] + 44 (MMDrawerController.m:175) 22 NewGoMapV2.0 0x00135718 _TTSf4d_d_n_TFC12NewGoMapV2_011AppDelegate11applicationfTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVs10DictionaryVSC29UIApplicationLaunchOptionsKeyP__Sb + 1380 (AppDelegate.swift:0) 23 NewGoMapV2.0 0x00134c1c

Thanks in advance.