Created
January 18, 2013 01:00
-
-
Save rscarvalho/4561405 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| @interface WPPostViewController : UIViewController | |
| @property (nonatomic, strong) NSString *postText; | |
| @property (nonatomic, strong) NSString *postTitle; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "WPPostViewController.h" | |
| @interface WPPostViewController () | |
| @property (weak, nonatomic) IBOutlet UIWebView *webView; | |
| @end | |
| @implementation WPPostViewController | |
| - (void)viewWillAppear:(BOOL)animated | |
| { | |
| [super viewWillAppear:animated]; | |
| self.navigationItem.title = self.postTitle; | |
| [self.webView loadHTMLString:self.postText baseURL:nil]; | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment