mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
removing subview when going back to main list
This commit is contained in:
parent
27a66364da
commit
b954441caa
2 changed files with 15 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
|||
#import "FeedDetailViewController.h"
|
||||
#import "NewsBlurAppDelegate.h"
|
||||
#import "FeedDetailTableCell.h"
|
||||
#import "DetailViewController.h"
|
||||
#import "PullToRefreshView.h"
|
||||
#import "ASIFormDataRequest.h"
|
||||
#import "NSString+HTML.h"
|
||||
|
@ -131,6 +132,20 @@
|
|||
[super viewDidAppear:animated];
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated {
|
||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){
|
||||
NSArray *subviews = [[appDelegate.detailViewController.view subviews] copy];
|
||||
for (UIView *subview in subviews) {
|
||||
if (subview.tag == 12) {
|
||||
[subview removeFromSuperview];
|
||||
}
|
||||
}
|
||||
[subviews release];
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
[storyTitlesTable release];
|
||||
[feedViewToolbar release];
|
||||
|
|
|
@ -66,7 +66,6 @@
|
|||
[ASIHTTPRequest setDefaultUserAgentString:@"NewsBlur iPhone App v1.0"];
|
||||
|
||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){
|
||||
NSLog(@"******************* iPad");
|
||||
navigationController.viewControllers = [NSArray arrayWithObject:feedsViewController];
|
||||
[window addSubview:splitViewController.view];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue