mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-11-01 09:09:51 +00:00
adding user agent for ipad
This commit is contained in:
parent
e6f3793170
commit
1bc3b98ecc
2 changed files with 12 additions and 1 deletions
|
|
@ -234,6 +234,8 @@
|
|||
}
|
||||
[self.errorLabel setHidden:NO];
|
||||
} else {
|
||||
[self.passwordInput setText:@""];
|
||||
[self.signUpPasswordInput setText:@""];
|
||||
[appDelegate reloadFeedsView:YES];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue