Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 15    Views: 71

Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
03/01/14 12:12 PM (10 years ago)

Question on Buzz Carousel

Love the plugin, looks and works perfectly. One thing I've noticed, in my debug console, after going into a BuzzCarousel screen, then leaving it to go to another screen, the debug console still shows the x,y coordinates of the carousel changing like crazy, like every millisecond...even when not on the carousel screen. It doesn't do it until the carousel screen is fired though. I've noticed severe battery drain when my app is running on my device, and I'm assuming this is the reason. Does anyone else experience the same issue? Kittsy, can you confirm? It's not the end of the world, and probably not a very easy fix, so no worries... just wondering if this is where my battery drain is coming from. When my app is running, I seem to lose battery percentage about twice as fast as normal.
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
03/01/14 01:50 PM (10 years ago)
I don't have the Carousel (yet ;). However Smug helped me with a similar battery issue with his cool location plugin. There might already be a 'viewWillUnload' method that should have handled it. However you could add the following viewWillDisappear method (or add code there if it already exists) -(void) viewWillDisappear:(BOOL)animated { [self insertNameOfMethodThat KittsyUsesToStopAnimation]; } ==== Let me know when you have it fixed, I am looking forward to using it also.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/01/14 02:15 PM (10 years ago)
Hmmm.... looks like we're on the right track. He does have a viewwilldisappear section, with only code to hide the view, not unload it... but no viewwillunload method... so no idea what the code is to unload the animation. Either way, carrousel is worth buying, even if this issue isn't fixed. I'd put it in my top 5 plugins... maybe even my top 3. Awesome piece of work.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/01/14 02:44 PM (10 years ago)
Good find Angry Ninja! Look for the word "stop" or "halt" within that plugin's code. You might get lucky. (there is an easy way to just see the list of Methods within a class -- too hard to describe in textual format though) Mustang is onto something there with Smug's tip ...
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/01/14 02:55 PM (10 years ago)
Wow guys, that was way too easy! In the viewwilldisappear, add this: [scrollTimer invalidate]; scrollTimer = nil; Thanks for the tip Niraj & NCbuzz! Works perfectly and stops the background animations, and leaves the animations as they should be when the screen is visible :)
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/01/14 04:02 PM (10 years ago)
Can you tell Kittsy to update his plugin accordingly?
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/01/14 04:02 PM (10 years ago)
Will do ;)
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/01/14 04:04 PM (10 years ago)
Is this only when automatic mode is enabled? (For un-attended animations and scrolling) Bear in mind that Kittsy get overwhelmed with emails and PMs. Best to Tweet him, that's the new channel into his inner sanctum. :-)
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/01/14 04:07 PM (10 years ago)
Yeah, for automatic mode. Thats the only time that it continues to spin in the background, since no user interaction is swiping the menus. I did send him a PM, but good call on the Twitter... I'll head over there next
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/01/14 04:11 PM (10 years ago)
Heck -- post it onto http://buzz-tools.com so that is is recorded in posterity for Chris1
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/01/14 04:11 PM (10 years ago)
He's been twitted, lol
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/01/14 04:12 PM (10 years ago)
Tried, but none of Kittsys plugins are listed
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/01/14 04:51 PM (10 years ago)
Sorry late to the party, I was sure I fixed this issue over 12 months ago, shows how many people actually use the auto rotate function. The new version of the plugin will have this fixed. I don't use buzz-tools.com, email or PM me directly and I will fix any issues with any of my plugins. I'm a perfectionist it's rare abut will slip out, I don't rush lol. Well done Angry Ninja
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/01/14 04:54 PM (10 years ago)
lol, no problem Kittsy. Not that late to the party at all... 3 hours from question to fix to confirmation. :) I think auto rotation is one of the sexiest features of the plugin. Surprised not many people are using it. Gives that extra zing to the look of your app's menu. Maybe people are using it and just not watching the debug console to realize it was still rotating even when the menu was no longer visible.
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
03/02/14 02:36 AM (10 years ago)
As reported here, Kittsy's carousel is absolutely awesome! (See it in action in my 'SwimSafe' and 'LevensGarden' apps.) I took the easy way out last year and just commented out the report to debugger lines. That way I could more clearly see what else was going on in the de-bug...
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/02/14 02:38 AM (10 years ago)
Ah, clever. I think even though commented out, even if it's not reporting to the debugger, the objects are still rotating in the background and causing a possible battery drain though. Still, sounds like Kittsy has a rework of the plugin coming out soon, where he says it won't be an issue.
 

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.