Discussion Forums  >  Uncategorized

Replies: 6    Views: 475

GreatCowGuru
I hate code!
Profile
Posts: 8
Reg: Apr 06, 2011
location unknow...
80
04/11/11 12:07 AM (14 years ago)

timer / clock integration

Is there any way to add a timer/clock/stopwatch into an app? It would be really cool if you could call one from inside the app. Also, some form of text entry box. I would like to time specific evetns with a stop watch, then add text as a result. Thanks for all your hard work buzztocuh team!
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
04/11/11 04:37 AM (14 years ago)
As I'm sure Dave will tell you, you can add anything into your app depending on your background and how much effort you're willing to put into it. Search the iphone developer forums and on google... you can usually find tutorials and samples of most things you want to do.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
04/11/11 04:49 AM (14 years ago)
As I'm sure Dave will tell you, you can add anything into your app depending on your background and how much effort you're willing to put into it. Search the iphone developer forums and on google... you can usually find tutorials and samples of most things you want to do. http://www.apptite.be/blog/ios/sample-ios-application-stopwatch/
 
GreatCowGuru
I hate code!
Profile
Posts: 8
Reg: Apr 06, 2011
location unknow...
80
like
04/11/11 11:46 AM (14 years ago)
Thanks, I'll have a look. I have no programming background though, so I'm hoping to be able to integrate something by just lifting out the code I need. Maybe asking a bit much at the moment :)
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
06/18/11 04:56 PM (14 years ago)
Hi GreatCowGuru (great screen name!), did you ever implement a timer? love to know what you found out...thanks!
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
06/18/11 06:24 PM (14 years ago)
Also, if anyone knows of an Html countdown timer that user could simple time to countdown and maybe show a message? or similar that would be awesome...thanks everyone!
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
06/18/11 10:19 PM (14 years ago)
HI, wondering if anybody can tell me if this is the best way to go for a simple countdown timer,is it best to ad this to custom Html screen and use refresh to start timer again? also is there a way to make screen flash or make sound when timer is done, help with the code? thanks everyone!!! <head> <style> .timeClass { font-family:arial,verdana,helvetica,sans-serif; font-weight:normal; font-size:60pt; } </style> <script> var sec = 04; // set the seconds var min = 10; // set the minutes function countDown() { sec--; if (sec == -01) { sec = 59; min = min - 1; } else { min = min; } if (sec<=9) { sec = 0 + sec; } time = (min<=9 ? 0 + min : min) + min and + sec + sec ; if (document.getElementById) { theTime.innerHTML = time; } SD=window.setTimeout(countDown();, 1000); if (min == '00' && sec == '00') { sec = 00; window.clearTimeout(SD); } } function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } addLoadEvent(function() { countDown(); }); </script> </form> </body> <span id=theTime class=timeClass></span> </html>
 

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.