Skip to content

Commit

Permalink
fix crashlytics issue 5
Browse files Browse the repository at this point in the history
add a new startup iphone5 image?
  • Loading branch information
zipleen committed Jul 21, 2013
1 parent 72370c6 commit f399e9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Binary file modified [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions TvhClient/TVHServer.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@ - (void)fetchServerVersion {
if ( versionRange ) {
NSString* versionString = [response substringWithRange:[versionRange rangeAtIndex:1]];
versionString = [versionString stringByReplacingOccurrencesOfString:@"." withString:@""];
self.version = [versionString substringWithRange:NSMakeRange(0, 2)];
if ([versionString length] > 2) {
self.version = [versionString substringWithRange:NSMakeRange(0, 2)];
#ifdef TESTING
NSLog(@"[TVHServer getVersion]: %@", self.version);
NSLog(@"[TVHServer getVersion]: %@", self.version);
#endif
[[NSNotificationCenter defaultCenter] postNotificationName:@"didLoadTVHVersion"
object:self];
[[NSNotificationCenter defaultCenter] postNotificationName:@"didLoadTVHVersion"
object:self];
}
}
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"[TVHServer getVersion]: %@", error.localizedDescription);
Expand Down

0 comments on commit f399e9b

Please sign in to comment.