We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dae2bc4 + 9f9fe14 commit 02368e4Copy full SHA for 02368e4
CYLTabBarController/CYLTabBar.m
@@ -259,6 +259,10 @@ - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
259
260
//2. 优先处理 PlusButton (包括其突出的部分)、TabBarItems 未凸出的部分
261
//这一步主要是在处理只有两个 TabBarItems 的场景。
262
+ // 2.1先考虑clipsToBounds情况:子view超出部分没有显示出来
263
+ if (self.clipsToBounds && ![self pointInside:point withEvent:event]) {
264
+ return nil;
265
+ }
266
267
if (CYLExternPlusButton) {
268
CGRect plusButtonFrame = self.plusButton.frame;
0 commit comments