From 7c7bb11492f1564095670cdccfbbe2f2bdb901a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Cvengros=CC=8C?= Date: Tue, 27 Oct 2015 22:45:35 +0100 Subject: [PATCH 1/3] Arbirary loads transport security iOS 9 --- MWFeedParser-Info.plist | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MWFeedParser-Info.plist b/MWFeedParser-Info.plist index 95f182e..4528f6a 100644 --- a/MWFeedParser-Info.plist +++ b/MWFeedParser-Info.plist @@ -28,6 +28,11 @@ MainWindow UIApplicationExitsOnSuspend + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + UISupportedInterfaceOrientations UIInterfaceOrientationPortrait From 6c0b15dd7813797d6d2a9bc760aca7cf28d35758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Cvengros=CC=8C?= Date: Tue, 27 Oct 2015 22:45:56 +0100 Subject: [PATCH 2/3] test feed --- Classes/RootViewController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Classes/RootViewController.m b/Classes/RootViewController.m index f11ac8f..75f25f3 100644 --- a/Classes/RootViewController.m +++ b/Classes/RootViewController.m @@ -59,7 +59,10 @@ - (void)viewDidLoad { // Parse // NSURL *feedURL = [NSURL URLWithString:@"http://images.apple.com/main/rss/hotnews/hotnews.rss"]; // NSURL *feedURL = [NSURL URLWithString:@"http://feeds.mashable.com/Mashable"]; - NSURL *feedURL = [NSURL URLWithString:@"http://techcrunch.com/feed/"]; +// NSURL *feedURL = [NSURL URLWithString:@"http://techcrunch.com/feed/"]; + NSURL *feedURL = [NSURL URLWithString:@"http://feeds.bbci.co.uk/news/rss.xml"]; +// NSURL *feedURL = [NSURL URLWithString:@"http://blog.lelevier.com/feed.xml"]; + feedParser = [[MWFeedParser alloc] initWithFeedURL:feedURL]; feedParser.delegate = self; feedParser.feedParseType = ParseTypeFull; // Parse feed info and all items From adaeedf59ba5fb1449a279a9fd095a16200954ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Cvengros=CC=8C?= Date: Tue, 27 Oct 2015 22:49:59 +0100 Subject: [PATCH 3/3] root view controller missing fix --- Classes/MWFeedParserAppDelegate.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Classes/MWFeedParserAppDelegate.m b/Classes/MWFeedParserAppDelegate.m index 13f8149..5faed66 100644 --- a/Classes/MWFeedParserAppDelegate.m +++ b/Classes/MWFeedParserAppDelegate.m @@ -39,8 +39,10 @@ @implementation MWFeedParserAppDelegate #pragma mark Application lifecycle - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after app launch - [window addSubview:[navigationController view]]; + // Override point for customization after app launch + + // [window addSubview:[navigationController view]]; + [self.window setRootViewController:navigationController]; [window makeKeyAndVisible]; return YES; }