Dr0ptp4kt has submitted this change and it was merged.
Change subject: Fix for iOS 6 native web tracking view.
......................................................................
Fix for iOS 6 native web tracking view.
Change-Id: Ie8d8a1bed5806fc3830722a3a5953a815f923cc8
---
M wikipedia/Categories/UIWebView+WMFTrackingView.h
M wikipedia/Categories/UIWebView+WMFTrackingView.m
2 files changed, 4 insertions(+), 13 deletions(-)
Approvals:
Dr0ptp4kt: Verified; Looks good to me, approved
Fjalapeno: Looks good to me, but someone else must approve
Bgerstle: Looks good to me, but someone else must approve
diff --git a/wikipedia/Categories/UIWebView+WMFTrackingView.h
b/wikipedia/Categories/UIWebView+WMFTrackingView.h
index 1ceba67..6f7b479 100644
--- a/wikipedia/Categories/UIWebView+WMFTrackingView.h
+++ b/wikipedia/Categories/UIWebView+WMFTrackingView.h
@@ -1,10 +1,5 @@
-//
-// UIWebView+TrackingView.h
-// Wikipedia
-//
// Created by Monte Hurd on 2/16/15.
-// Copyright (c) 2015 Wikimedia Foundation. All rights reserved.
-//
+// Copyright (c) 2015 Wikimedia Foundation. Provided under MIT-style license;
please copy and modify!
#import <UIKit/UIKit.h>
diff --git a/wikipedia/Categories/UIWebView+WMFTrackingView.m
b/wikipedia/Categories/UIWebView+WMFTrackingView.m
index 96d8cd6..eb6d8d3 100644
--- a/wikipedia/Categories/UIWebView+WMFTrackingView.m
+++ b/wikipedia/Categories/UIWebView+WMFTrackingView.m
@@ -1,12 +1,8 @@
-//
-// UIWebView+TrackingView.m
-// Wikipedia
-//
// Created by Monte Hurd on 2/16/15.
-// Copyright (c) 2015 Wikimedia Foundation. All rights reserved.
-//
+// Copyright (c) 2015 Wikimedia Foundation. Provided under MIT-style license;
please copy and modify!
#import "UIWebView+WMFTrackingView.h"
+#import "UIView+SearchSubviews.h"
@implementation UIWebView (TrackingView)
@@ -21,7 +17,7 @@
// Reminder - this webView subview has the sizes we want constrain
// "view" to, but the constraints themselves need to be added to
// the webView's scrollView.
- UIView *browserView = self.scrollView.subviews[0];
+ UIView *browserView = [self.scrollView
getFirstSubviewOfClass:NSClassFromString(@"UIWebBrowserView")];
void (^constrainEqually)(NSLayoutAttribute) = ^void(NSLayoutAttribute
attr) {
[webScrollView addConstraint:
--
To view, visit https://gerrit.wikimedia.org/r/193322
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie8d8a1bed5806fc3830722a3a5953a815f923cc8
Gerrit-PatchSet: 2
Gerrit-Project: apps/ios/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Mhurd <[email protected]>
Gerrit-Reviewer: Bgerstle <[email protected]>
Gerrit-Reviewer: Dr0ptp4kt <[email protected]>
Gerrit-Reviewer: Fjalapeno <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits