-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRCWebViewController.h
More file actions
42 lines (37 loc) · 1.39 KB
/
RCWebViewController.h
File metadata and controls
42 lines (37 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// RCWebViewController.h
// PageControl
//
// Created by rcrebs on 1/13/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol RCWebViewControllerDelegate;
@interface RCWebViewController : UIViewController <UIWebViewDelegate, UIActionSheetDelegate> {
id <RCWebViewControllerDelegate> delegate;
NSURL *url;
UIWebView *webView;
UIBarButtonItem *backButton, *forwardButton, *safariButton;
UIActivityIndicatorView *safariLoadIndicator;
UINavigationBar *webViewNavBar;
NSString *navTitle;
}
@property (nonatomic, retain) IBOutlet NSString *navTitle;
@property (nonatomic, retain) IBOutlet UINavigationBar *webViewNavBar;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *buttonItem;
@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *safariLoadIndicator;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *backButton;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *forwardButton;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *safariButton;
@property (nonatomic, retain) IBOutlet UIWebView *webView;
@property (nonatomic, retain) NSURL *url;
@property (nonatomic, assign) id<RCWebViewControllerDelegate> delegate;
// Methods
-(IBAction)done;
-(IBAction)back;
-(IBAction)forward;
-(IBAction)openInSafari;
@end
@protocol RCWebViewControllerDelegate
-(void)webViewControllerDidFinish:(RCWebViewController *)controller;
@end