Permalink
Browse files

Updated HelloWorld.plist location

  • Loading branch information...
1 parent 25a5145 commit f9c61fe74e3b50ca6f1e5ed5f133b73b0ca1ed02 @soffes committed Feb 15, 2010
Showing with 14 additions and 2 deletions.
  1. +2 −2 Classes/ViewController.m
  2. +12 −0 HelloWorld.plist
View
@@ -17,14 +17,14 @@ @implementation ViewController
- (void)viewDidLoad {
// URL for our plist
- NSURL *plistURL = [NSURL URLWithString:@"http://samsoffes.github.com/iphone-plist/HelloWorld.plist"];
+ NSURL *plistURL = [NSURL URLWithString:@"http://github.com/samsoffes/iphone-plist/raw/master/HelloWorld.plist"];
// Initialize our dictionary from the plist on the server
NSDictionary *dictionary = [NSDictionary dictionaryWithContentsOfURL:plistURL];
// Update the view to show that our results
- // These two keys are strings in the plist which map to NSStrng
+ // These two keys are strings in the plist which map to NSString
labelOne.text = [dictionary objectForKey:@"keyOne"];
labelTwo.text = [dictionary objectForKey:@"otherCoolKey"];
View
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>keyOne</key>
+ <string>Hello</string>
+ <key>otherCoolKey</key>
+ <string>World</string>
+ <key>weCanDoIntegersToo</key>
+ <integer>2</integer>
+</dict>
+</plist>

0 comments on commit f9c61fe

Please sign in to comment.