Skip to content

Commit 9eab55b

Browse files
committed
Merge pull request #298 from staminajim/master
fix deprecation warning when targeting iOS 8
2 parents 559c993 + a62e364 commit 9eab55b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Branch-SDK/Branch-SDK/BranchUniversalObject.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ - (void)showShareSheetWithLinkProperties:(BranchLinkProperties *)linkProperties
162162
}
163163
};
164164
} else {
165+
#pragma clang diagnostic push
166+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
167+
// Deprecated in iOS 8. Safe to hide deprecation warnings as the new completion handler is checked for above
165168
shareViewController.completionHandler = completion;
169+
#pragma clang diagnostic pop
166170
}
167171

168172
UIViewController *presentingViewController;

0 commit comments

Comments
 (0)