|
|
#362 (permalink) |
|
Senior Member
Join Date: Mar 2008
Location: Detroitish
Posts: 1,561
|
There is no way for me to say for sure. I've submitted twice and been rejected twice for totally different reasons. I think it'll be live by the end of June, but it's really not up to me.
|
| (Offline) |
|
|
|
#363 (permalink) |
|
Senior Member
Join Date: Mar 2008
Location: Detroitish
Posts: 1,561
|
This is what the countdown looks like right now. I haven't made any logic to say that if the show is live to change the label to right now or whatever. This will come next.
Also it feels cluttered so I need to tinker with layout. And as always every time I add something it gets a little slower so I think I need to stop adding features and tune for awhile, clean up the codebase, etc. Last edited by hayroob; 05-21-2009 at 02:50 PM. |
| (Offline) |
|
|
|
#365 (permalink) | |
|
Senior Member
Join Date: Apr 2006
Posts: 1,034
|
Quote:
if you get stuck transcribing theGrundle's countdown logic i have it in 2 other languages, although i'm sure he's already got you covered... (theGrundle == godfather of katg apps) |
|
| (Offline) |
|
|
|
#366 (permalink) | |
|
Senior Member
Join Date: Mar 2008
Location: Detroitish
Posts: 1,561
|
Quote:
Code:
NSDate *eventTime = [formatter dateFromString: feedTime];
timeSince = [eventTime timeIntervalSinceNow];
match1 = [feedTitle rangeOfString:@"Live Show" options:NSCaseInsensitiveSearch].location != NSNotFound;
match2 = timeSince > 0;
feedEntryIndex = feedEntryIndex - 1;
}
int s = 0;
int m = 0;
int h = 0;
int d = 0;
int temp = timeSince;
if (timeSince > 60) {
s = timeSince % 60;
timeSince /= 60;
if (timeSince > 60) {
m = timeSince % 60;
timeSince /= 60;
if (timeSince > 24) {
h = timeSince % 24;
timeSince /= 24;
d = timeSince;
} else {
h = timeSince;
}
} else {
m = timeSince;
}
}
timeSince = temp;
days.text = [[NSString alloc] initWithFormat:@"%d",d];
hours.text = [[NSString alloc] initWithFormat:@"%d",h];
minutes.text = [[NSString alloc] initWithFormat:@"%d",m];
|
|
| (Offline) |
|
|
|
#367 (permalink) | |
|
Senior Member
Join Date: Jun 2006
Location: New Orleans
Posts: 751
|
Quote:
days = timeSince \ 86400 hours = (timeSince \ 3600) - (days * 24) minutes = (timeSince \ 60) - (days * 1440) - (hours * 60) seconds = timeSince Mod 60 I've also done it differently in .NET Code:
Public Function formatSecs(ByVal sSeconds As Long) As String 'Converts seconds to 0:00
Dim tSpan As TimeSpan = New TimeSpan(0, 0, sSeconds)
Dim sDate As DateTime = New DateTime(tSpan.Ticks)
Return Int(tSpan.TotalHours) & sDate.ToString(":mm:ss")
End Function
It just seems like a lot of code to me. Last edited by TheGrundle; 05-22-2009 at 09:13 PM. |
|
| (Offline) |
|
|
|
#369 (permalink) | |
|
Senior Member
Join Date: Mar 2008
Location: Detroitish
Posts: 1,561
|
Quote:
all the ifs are now Code:
int d = timeSince / 86400; int h = timeSince / 3600 - d * 24; int m = timeSince / 60 - d * 1440 - h * 60; int s = timeSince % 60; |
|
| (Offline) |
|
|
|
#370 (permalink) |
|
Senior Member
Join Date: May 2006
Location: Seattle, WA
Posts: 362
|
Today I put adhocKATG1.1.com on my iPod Touch 1st gen.
It starts normally ![]() But after 2 seconds it goes all blank ![]() I tried rebooting the iPod but it didn't change anything. I can press the home button to get back to the menu so it isn't crashing or anything. It is connected to a wireless network and that is working. Is 1.1 the current version? |
| (Offline) |
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|