Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 57

NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
03/13/14 07:20 PM (10 years ago)

Scringo- SwipeToOpenSidebar

Have Scringo implemented in a test app, and after reading some other threads, realized I should disable the swipe in my Map screen so the Map works as expected without activating the Scringo menu. Disabled swipe for side menu in the map plugin with BT_screen_map.m changes: a) adding #import <Scringo/Scringo.h> b) in viewWillAppear added: [Scringo disableSwipeToOpenSidebar]; As expected that turned it off for the screen (and the rest of the App) however... ============================================== In order to re-enable when exiting the Map Plugin, where would this code go? [Scringo enableSwipeToOpenSidebar];
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
03/13/14 09:43 PM (10 years ago)
add this method to your map plugin (.m file): -(void)viewWillDisappear { [super viewWillDisappear]; [Scringo enableSwipeToOpenSidebar]; }
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
03/14/14 06:40 AM (10 years ago)
Thanks Chris! Xcode wanted small syntax change, but it worked great with change. -(void)viewWillDisappear:(BOOL)animated{ [super viewWillDisappear:animated]; [Scringo enableSwipeToOpenSidebar]; }
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.