adding user agent for ipad

This commit is contained in:
Roy Yang 2012-06-30 00:02:08 -07:00
parent e6f3793170
commit 1bc3b98ecc
2 changed files with 12 additions and 1 deletions

View file

@ -234,6 +234,8 @@
}
[self.errorLabel setHidden:NO];
} else {
[self.passwordInput setText:@""];
[self.signUpPasswordInput setText:@""];
[appDelegate reloadFeedsView:YES];
}

View file

@ -86,7 +86,16 @@
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// [TestFlight takeOff:@"101dd20fb90f7355703b131d9af42633_MjQ0NTgyMDExLTA4LTIxIDIzOjU3OjEzLjM5MDcyOA"];
[ASIHTTPRequest setDefaultUserAgentString:@"NewsBlur iPhone App v1.0"];
NSString *currentiPhoneVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
[ASIHTTPRequest setDefaultUserAgentString:[NSString stringWithFormat:@"NewsBlur iPad App v%@",
currentiPhoneVersion]];
} else {
[ASIHTTPRequest setDefaultUserAgentString:[NSString stringWithFormat:@"NewsBlur iPhone App v%@",
currentiPhoneVersion]];
}
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){
navigationController.viewControllers = [NSArray arrayWithObject:feedsViewController];