Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary load for transport, root view controller fix #115

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Classes/MWFeedParserAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
5 changes: 4 additions & 1 deletion Classes/RootViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions MWFeedParser-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
<string>MainWindow</string>
<key>UIApplicationExitsOnSuspend</key>
<false/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
Expand Down