Skip to content

Instantly share code, notes, and snippets.

@rscarvalho
Created January 18, 2013 01:00
Show Gist options
  • Select an option

  • Save rscarvalho/4561405 to your computer and use it in GitHub Desktop.

Select an option

Save rscarvalho/4561405 to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
@interface WPPostViewController : UIViewController
@property (nonatomic, strong) NSString *postText;
@property (nonatomic, strong) NSString *postTitle;
@end
#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