https://github.com/oscarmorrison/blogapp
Basic iPhone app that displays blog posts, then presents the mobile version in a webview.
https://github.com/oscarmorrison/blogapp
Last synced: 5 months ago
JSON representation
Basic iPhone app that displays blog posts, then presents the mobile version in a webview.
- Host: GitHub
- URL: https://github.com/oscarmorrison/blogapp
- Owner: oscarmorrison
- License: mit
- Created: 2013-09-29T06:56:10.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-29T07:47:42.000Z (over 12 years ago)
- Last Synced: 2025-01-22T13:16:10.776Z (over 1 year ago)
- Size: 266 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
BlogApp
=======
Basic iPhone app that displays blog posts, then presents the mobile version in a webview.
### Basic Documentation ###
(TableViewController)
The app uses the Google Feed API: http://ogem.co/1dQ4sXZ
to parse the blogs XML feed to JSON format. This is stored in a NSURL *blogURL. To add your own blog, change the end url (e.g zendesk.com/feed) The num=30, 30 being the amount of posts.
The contents of the URL are then stored in a NSData object called *jasonData.
Which is then serialised into NSDictionary object.
The next part creates an NSArray (could also use NSMutableArray for dynamic storage)
using the keys in the dictionary,
Lines 48 and 49 have been commented out are used to assist with indentifying the keys in the NSDictionary.
For more information on JSON keys and JSON in general,
Squarespace developers has a good basic introduction: http://ogem.co/1dQ4MWO
And for NSDictionary allKeys see iOS Developer Docs: http://ogem.co/1dQ4PSy
The rest of the app is reasonable self-explanitary. The activity bar, UIProgressView is purley
for display purposes, it will load until site has finished loading, or about 2secs, whichever is faster. Although this is cosmetic, it is being used in the same context of that which a Activity indicator would be used, more information about the User Experience can be found in io design resources: http://ogem.co/1dQ4Qpu