Skip to content

Commit 5478bdf

Browse files
committed
https://qiita.com/tina79515/items/774421ceb26d5c8d99de
1 parent 4c06c4d commit 5478bdf

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

Example/M2DWebViewController.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@
280280
LastUpgradeCheck = 0820;
281281
ORGANIZATIONNAME = "Akira Matsuda";
282282
TargetAttributes = {
283+
6003F589195388D20070C39A = {
284+
DevelopmentTeam = 3VC35JGS33;
285+
};
283286
6003F5AD195388D20070C39A = {
284287
TestTargetID = 6003F589195388D20070C39A;
285288
};
@@ -290,6 +293,7 @@
290293
developmentRegion = English;
291294
hasScannedForEncodings = 0;
292295
knownRegions = (
296+
English,
293297
en,
294298
Base,
295299
);
@@ -537,6 +541,7 @@
537541
buildSettings = {
538542
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
539543
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
544+
DEVELOPMENT_TEAM = 3VC35JGS33;
540545
GCC_PRECOMPILE_PREFIX_HEADER = YES;
541546
GCC_PREFIX_HEADER = "M2DWebViewController/M2DWebViewController-Prefix.pch";
542547
INFOPLIST_FILE = "M2DWebViewController/M2DWebViewController-Info.plist";
@@ -553,6 +558,7 @@
553558
buildSettings = {
554559
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
555560
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
561+
DEVELOPMENT_TEAM = 3VC35JGS33;
556562
GCC_PRECOMPILE_PREFIX_HEADER = YES;
557563
GCC_PREFIX_HEADER = "M2DWebViewController/M2DWebViewController-Prefix.pch";
558564
INFOPLIST_FILE = "M2DWebViewController/M2DWebViewController-Info.plist";
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Pod/Classes/M2DWebViewController/M2DWebViewController.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ - (instancetype)initWithConfiguration:(WKWebViewConfiguration *)configuration ur
145145
- (void)dealloc
146146
{
147147
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
148+
if ([self.webView isKindOfClass:[UIWebView class]]) {
149+
UIWebView *webView = self.webView;
150+
if (webView.isLoading) {
151+
[webView stopLoading];
152+
}
153+
webView.delegate = nil;
154+
}
148155
}
149156

150157
- (id)webView

0 commit comments

Comments
 (0)