Skip to content

Commit e143137

Browse files
committed
Change cancel button to done button in RWebViewController.
1 parent 9d2dd45 commit e143137

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

WebAppWrapper/RWebViewController.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ @interface RWebViewController () <UIActionSheetDelegate>
1313

1414
@property (nonatomic, strong) UIWebView *webView;
1515

16-
@property (nonatomic, strong) UIBarButtonItem *cancelButton;
16+
@property (nonatomic, strong) UIBarButtonItem *doneButton;
1717

1818
@property (nonatomic, strong) UIBarButtonItem *backButton;
1919
@property (nonatomic, strong) UIBarButtonItem *forwardButton;
@@ -35,7 +35,7 @@ - (void)goForward;
3535
- (void)setButtonWithLoadingStatus:(BOOL)loading;
3636
- (void)refreshNavigationButtonStatus;
3737

38-
- (void)cancelButtonPressed:(id)sender;
38+
- (void)doneButtonPressed:(id)sender;
3939
- (void)backButtonPressed:(id)sender;
4040
- (void)forwardButtonPressed:(id)sender;
4141
- (void)refreshButtonPressed:(id)sender;
@@ -115,7 +115,7 @@ - (void)refreshNavigationButtonStatus
115115

116116
#pragma mark - Actions
117117

118-
- (void)cancelButtonPressed:(id)sender
118+
- (void)doneButtonPressed:(id)sender
119119
{
120120
[self dismiss];
121121
}
@@ -162,11 +162,11 @@ - (void)viewDidLoad
162162

163163
// Init navigation items.
164164

165-
self.cancelButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancelButtonPressed:)];
165+
self.doneButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(doneButtonPressed:)];
166166

167167
// Add navigation items.
168168

169-
self.navigationItem.leftBarButtonItem = self.cancelButton;
169+
self.navigationItem.rightBarButtonItem = self.doneButton;
170170

171171
// Init toolbar items.
172172

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy