You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
override public func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
...// 省略若干
var frames = [CGRect]()
userInteractionViews.forEach { (item) in
let frame = convert(item.frame, to: self)
frames.append(frame)
}
for item in frames {
let value = item.contains(point)
return value // 为什么这里第一个就直接 return 了,既然如此,传一个数组的意义是什么?为什么不直接传一个 UIView 对象?
}
return false
}
}
`
The text was updated successfully, but these errors were encountered:
`//
// ShazamTopView.swift
// Shazam
//
// Created by bawn on 2019/1/24.
// Copyright © 2019 bawn. All rights reserved.
//
import UIKit
public class ShazamTopView: UIView {
....// 省略若干
}
`
The text was updated successfully, but these errors were encountered: