Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 12    Views: 60

Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
09/06/14 09:37 AM (9 years ago)

How Do I hide the Loading Wheel?

Hi guys I've been developing an app using JQuery mobile which has it's own loading wheel which I want to use but it clashes with the loading wheel within the BT app framework. Question I want to know is how to turn off or hide the BT loading wheel as I currently have two showing. I need a solution for both iOS and Android. Any help would be appreciated.
 
Cakebit
Code is Art
Profile
Posts: 501
Reg: Dec 15, 2010
In your local b...
16,510
like
09/06/14 08:04 PM (9 years ago)
Hi Dragon007! To disable the loading view from showing, just comment out lines 129-152 in BT_viewUtilities.m Cheers, -Cake http://buzztouch.me/chat/
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
09/07/14 02:28 AM (9 years ago)
Thanks Cake for the advice. When you mean "comment out", do you mean to delete the line of code. Not sure what you mean?
 
Cakebit
Code is Art
Profile
Posts: 501
Reg: Dec 15, 2010
In your local b...
16,510
like
09/07/14 07:28 AM (9 years ago)
@Dragon007, You can delete it... but I generally don't advise people to just go around and remove pieces of code from the BT Core. That could cause problems. Instead if you just inclose the block of code in these symbols (/* and */) it will cause your code to become a comment, and Xcode will not compile it. Cheers, -Cake http://buzztouch.me/chat/
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
09/07/14 08:00 AM (9 years ago)
Cool, didn't know that, kept seeing the term banded around and I just never knew what you guys were going on about, ha ha.
 
Ed Goodall
Fusion Technology
Profile
Posts: 422
Reg: Oct 01, 2011
Wiltshire, UK
12,320
like
09/07/14 10:02 AM (9 years ago)
Also, to comment out a single line, just put // before the line.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
09/09/14 01:38 PM (9 years ago)
Just for info and reference 2 nice methods control this progress indicator. Both found in the BT_viewController class -(void)showProgress; called by using [self showProgress]; -(void)hideProgress; called by using [self hideProgress]; Although what Cakebit said to do, may work? by technically remove the progress view, not the best way to go about it. If you search for [self showProgress]; in the custom plugin and comment them out //[self showProgress]; Then it will stop the progress view from showing. Just remove the one conflicting as that bad boy can be really good for showing that your app ain't broke. It is sued in a lot of other plugins also
 
Cakebit
Code is Art
Profile
Posts: 501
Reg: Dec 15, 2010
In your local b...
16,510
like
09/09/14 01:41 PM (9 years ago)
Hey Kittsy! You are completely right :) I should have thought of that option myself... Of course you probably could just search and replace -(void)showProgress; with //-(void)showProgress; right? It is usually better to edit a plugin than mess with core. :D Thanks
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
09/09/14 01:44 PM (9 years ago)
DON'T MESS WITH THE CORE lol
 
Cakebit
Code is Art
Profile
Posts: 501
Reg: Dec 15, 2010
In your local b...
16,510
like
09/09/14 01:45 PM (9 years ago)
Kittsy, I can see the MEME coming...
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
09/09/14 01:45 PM (9 years ago)
I'm already printing a T Shirt. Although I love playing with the CORE
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
09/09/14 01:50 PM (9 years ago)
Thanks for the update.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
09/09/14 01:51 PM (9 years ago)
no problem, whisky powered support, on my 2009 matchbook pro :-(
 

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.