Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 60

LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
03/02/14 03:16 PM (10 years ago)

MrDavid's Scratch Feature- back scratch problem...

I'm playing with Mr David's great scratch feature plugin- an entertaining offshoot from his paint plugin no doubt. It works real well and as advertised, but... On first launch of a scratch off screen, a 'scratch' or swipe from left to right returns you to the previous screen again. If you launch the scratch off screen again this behaviour does not repeat and the top image will 'scratch' away as it should. Further launches of scratch off screens will behave too. The troublesome back scratch will only happen again after a refresh/relaunch. I'm wondering if the OS is 'listening' for this right to left swipe at this time. (Might this be a new feature of iOS7? It is a bit like swiping back through mobile safari pages). Any ideas for a fix would be gratefully received. Thank you
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/05/14 08:00 AM (10 years ago)
Chris -- Look into gestureRecognizer to see if the plugin can be modified to disable recognition of that particular gesture.
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
03/05/14 12:44 PM (10 years ago)
Thanks Niraj. That seems to be what I am looking for. Now to see if I can make a difference...
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/06/14 12:04 AM (10 years ago)
Chris1 menu advanced plugin uses a gesture recognizer for swiping of the header images. If you own that one, then it's an easy look-see. Remember to report back on your success! :-)
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
03/06/14 12:59 AM (10 years ago)
Thanks Niraj for staying with me on this one. I have looked and looked in the scratch feature plugin for gesture recognizer references and similar, but have found nothing. (I have found plenty of references on the interwebs to gesture recogniser however- what an interesting subject!). I am wondering if a different process is in play. Here is the debugger output just before and after a right swipe/scratch takes you back to the previous menu... I am wondering if it isn't the scratch plugin, but a deeper level of the coding that is still listening for that swipe gesture.... BT_fileManager: File does exist in Xcode bundle: "thomas_skelton_nav.png" 2014-03-06 07:42:10.997 carouseltrail[59417:70b] BT_background_view: "thomas_skelton_nav.png" exists in Xcode bundle - not downloading. 2014-03-06 07:42:11.000 carouseltrail[59417:70b] BT_background_view: setImage 2014-03-06 07:42:11.001 carouseltrail[59417:70b] carouseltrail_appDelegate: supportedInterfaceOrientationsForWindow (this is where I swipe/scratch across to the right from the left of the screen) 2014-03-06 07:42:22.027 carouseltrail[59417:70b] BT_navController: popViewControllerAnimated for screen with itemId: B893C81BEAC6715D71A1DF1 2014-03-06 07:42:22.028 carouseltrail[59417:70b] BT_navController: transition type: fade 2014-03-06 07:42:22.029 carouseltrail[59417:70b] CR_Tumblr_Menu: viewWillAppear (super) 2014-03-06 07:42:22.030 carouseltrail[59417:70b] CR_Tumblr_Menu: configureNavBar (super) for screen with itemId: 267474800EF0CF1F05262A0 2014-03-06 07:42:22.031 carouseltrail[59417:70b] BT_viewUtilities: getNavBarBackgroundColorForScreen: Screen "tumblr menu" color: #0000CC 2014-03-06 07:42:22.031 carouseltrail
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/06/14 08:32 AM (10 years ago)
Darn it. I made an assumption you knew where to look. Don't look in the plugins. Look in the BT files, use the Xcode project-level search. Maybe a comment might be in there such as "swipe".
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
03/06/14 08:36 AM (10 years ago)
Thanks again Niraj. That is looking a lot more promising... Chris
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
03/06/14 03:28 PM (10 years ago)
BT_navController and BT_viewController have references to popViewControllerAnimated. I have looked and looked at code (it is certainly a good education), but I am in way over my depth here. I think I will just have to ditch the scratch feature until Mr David gets to fixing it... Thanks for your pointers though- I know more now than I did... Chris
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/06/14 08:11 PM (10 years ago)
Make a new post "disable swipe from left to go back?"
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
03/07/14 12:41 AM (10 years ago)
I have made that new post, as you suggest. I was too tired and dispirited to continue last night- but today is a new day! Thank you for your support... Chris
 

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.