Correcting iOS delete and rotation on ipad.

This commit is contained in:
Samuel Clay 2013-06-04 18:02:05 -07:00
parent 2bf76c2829
commit fa51f127f9
2 changed files with 13 additions and 17 deletions

View file

@ -1176,9 +1176,7 @@
[request setDelegate:self];
[request addPostValue:[[appDelegate activeFeed] objectForKey:@"id"] forKey:@"feed_id"];
[request addPostValue:[appDelegate extractFolderName:appDelegate.activeFolder] forKey:@"in_folder"];
[request setFailedBlock:^(void) {
[self informError:[request error]];
}];
[request setDidFailSelector:@selector(requestFailed:)];
[request setCompletionBlock:^(void) {
[appDelegate reloadFeedsView:YES];
[appDelegate.navigationController
@ -1207,9 +1205,7 @@
forKey:@"folder_to_delete"];
[request addPostValue:[appDelegate extractFolderName:[appDelegate extractParentFolderName:appDelegate.activeFolder]]
forKey:@"in_folder"];
[request setFailedBlock:^(void) {
[self informError:[request error]];
}];
[request setDidFailSelector:@selector(requestFailed:)];
[request setCompletionBlock:^(void) {
[appDelegate reloadFeedsView:YES];
[appDelegate.navigationController
@ -1271,7 +1267,7 @@
NEWSBLUR_URL,
[appDelegate.activeFeed objectForKey:@"id"]];
[self cancelRequests];
__block ASIHTTPRequest *request = [self requestWithURL:urlString];
ASIHTTPRequest *request = [self requestWithURL:urlString];
[request setDelegate:self];
[request setResponseEncoding:NSUTF8StringEncoding];
[request setDefaultResponseEncoding:NSUTF8StringEncoding];

View file

@ -192,16 +192,16 @@
- (void)showSplashView {
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
splashView = [[UIImageView alloc] init];
int rotate = 0;
if (orientation == UIInterfaceOrientationPortraitUpsideDown) {
NSLog(@"UPSIDE DOWN");
rotate = -2;
} else if (orientation == UIInterfaceOrientationLandscapeLeft) {
rotate = -1;
} else if (orientation == UIInterfaceOrientationLandscapeRight) {
rotate = 1;
}
// splashView.transform = CGAffineTransformMakeRotation(M_PI * rotate * 90.0 / 180);
// int rotate = 0;
// if (orientation == UIInterfaceOrientationPortraitUpsideDown) {
// NSLog(@"UPSIDE DOWN");
// rotate = -2;
// } else if (orientation == UIInterfaceOrientationLandscapeLeft) {
// rotate = -1;
// } else if (orientation == UIInterfaceOrientationLandscapeRight) {
// rotate = 1;
// }
// splashView.transform = CGAffineTransformMakeRotation(M_PI * rotate * 90.0 / 180);
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad &&
UIInterfaceOrientationIsLandscape(orientation)) {
splashView.frame = CGRectMake(0, 0, self.view.frame.size.height, self.view.frame.size.width);