AppOne
buzztouch Evangelist
Profile
Posts: 348
Reg: Apr 03, 2012
London
13,980
10/14/12 09:32 AM (13 years ago)

How do you insert a loading graphic?

How do you insert a loading graphic when a screen is opened in a BT v2.0 app? The idea would be that for the first X number of seconds after the screen appears there is a loading graphic. Is there some code I can input? (Note: I can't use the pdf screen and there isn't an rss screen in BT v2.0 unfortunately.)
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/14/12 10:02 AM (13 years ago)
In case of android you can put a toast dialogue after the end of activity cycle events. //show progress... showProgress("Loading...", "Please be patient, it will take only a moment to load");
 
AppOne
buzztouch Evangelist
Profile
Posts: 348
Reg: Apr 03, 2012
London
13,980
like
10/14/12 10:23 AM (13 years ago)
Hi Sandeep, I should have said for iOS :)
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/14/12 10:25 AM (13 years ago)
Oh... So sorry for that. I am new for iOS and dont know much about obj c. Anyway we both can wait for some ios guy to answer your question.
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
10/14/12 10:51 AM (13 years ago)
Hi AppOneBeta. If you change Default.png and [email protected] to another start image screen. Then you do not have a black loading image. If want a longer splash screen, you take the same image and put in the splash screen the you set the time in your CP.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/14/12 10:53 AM (13 years ago)
So this seems to be an easy fix, no coding at all required..
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
10/14/12 10:55 AM (13 years ago)
You might find this tutorial interesting - http://iphonedevelopment.blogspot.com/2010/02/implementing-wait.html?m=1 It shows you how to create a loading screen that changes messages after x number of seconds have passed. Maybe more complicated than what you're looking for but still pretty cool
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/14/12 10:58 AM (13 years ago)
No doubt it seems to be a bit complicated atleast for me.
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
10/14/12 11:23 AM (13 years ago)
Yeah it is for me too haha..it looks like a cool idea though I wish I could do it
 
AppOne
buzztouch Evangelist
Profile
Posts: 348
Reg: Apr 03, 2012
London
13,980
like
10/14/12 12:14 PM (13 years ago)
@Sandeep - even though you said Android I searched for showprogress in the .m files and it turns out that's what you do in iOS too. You just put [self showProgress]; where you want the wheel of death to show up :) Thanks for replies guys!!
 
AppOne
buzztouch Evangelist
Profile
Posts: 348
Reg: Apr 03, 2012
London
13,980
like
10/14/12 12:25 PM (13 years ago)
Now I'd like to know how to stop the showprogress graphic after a set time, because in this case it's not tied to an activity ... Hmm...
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/15/12 01:17 AM (13 years ago)
I found this code in the CustomURL plugin. I think this might sort out your problem. Just make necessary changes and you are ready to go. //started loading... -(void)webViewDidStartLoad:(UIWebView *)theWebView{ [BT_debugger showIt:self:[NSString stringWithFormat:@"webViewDidStartLoad%@", @""]]; [self showProgress]; } //done loading - (void)webViewDidFinishLoad:(UIWebView *)theWebView{ [BT_debugger showIt:self:@"webViewDidFinishLoad"]; //hide progress [self hideProgress];
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
10/15/12 01:23 AM (13 years ago)
^^ I've been trying to figure out how to do that with the new store view feature of iOS 6.0 With RevMob for example - When the ad is activated it now simply loads a store view instead of taking the user out of the app and into the app store. I want to make it so that a loading screen appears when the ad begins to load, and then disappears when the user exits out of the store view. Sorry, I guess this is probably driving the conversation off topic. I'll probably just make a new thread about it
 
AppOne
buzztouch Evangelist
Profile
Posts: 348
Reg: Apr 03, 2012
London
13,980
like
10/16/12 01:33 AM (13 years ago)
@Sandeep - yeah I'll try that out - the thing is I want it to stop after a certain amount of time, not after an activity... but it's a good place to start looking. @Absentia - yeah I've tried to work the revmob thing out as it does take too long for the store view to load. I put... [self showProgress]; ...after the revmob ad link just to get a loading image before it comes up in a BT v2.0 app but of course it doesn't stop after the app store is loaded. It would help to have showProgress stop after a certain amount of time
 

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.