2012-12-24 23:01:25 -08:00
|
|
|
//
|
|
|
|
// TrainerViewController.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 12/24/12.
|
|
|
|
// Copyright (c) 2012 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import "BaseViewController.h"
|
|
|
|
#import "NewsBlurAppDelegate.h"
|
|
|
|
|
2012-12-25 19:03:50 -08:00
|
|
|
|
|
|
|
@interface TrainerWebView : UIWebView {}
|
|
|
|
|
|
|
|
- (void)changeTitle:(id)sender;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
2012-12-24 23:01:25 -08:00
|
|
|
@interface TrainerViewController : BaseViewController
|
|
|
|
<UIWebViewDelegate> {
|
|
|
|
NewsBlurAppDelegate *appDelegate;
|
|
|
|
|
|
|
|
IBOutlet UIBarButtonItem * closeButton;
|
2012-12-25 19:03:50 -08:00
|
|
|
TrainerWebView *webView;
|
2012-12-24 23:01:25 -08:00
|
|
|
UINavigationBar *navBar;
|
|
|
|
}
|
|
|
|
|
|
|
|
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *closeButton;
|
2012-12-25 19:03:50 -08:00
|
|
|
@property (nonatomic) IBOutlet TrainerWebView *webView;
|
2012-12-24 23:01:25 -08:00
|
|
|
@property (nonatomic) IBOutlet UINavigationBar *navBar;
|
|
|
|
|
|
|
|
- (NSString *)makeTrainerSections;
|
|
|
|
- (NSString *)makeAuthor;
|
|
|
|
- (NSString *)makeTags;
|
|
|
|
- (NSString *)makePublisher;
|
|
|
|
- (NSString *)makeTitle;
|
2012-12-25 19:03:50 -08:00
|
|
|
- (NSString *)makeClassifier:(NSString *)classifierName withType:(NSString *)classifierType;
|
|
|
|
|
2012-12-24 23:01:25 -08:00
|
|
|
- (IBAction)doCloseDialog:(id)sender;
|
2012-12-25 19:03:50 -08:00
|
|
|
- (void)changeTitle:(id)sender;
|
2012-12-24 23:01:25 -08:00
|
|
|
|
2012-12-25 19:03:50 -08:00
|
|
|
@end
|