fileprivate func buttonCenterInButtons(curbtn:UIButton) -> UIButton { for btn in btnArr { if curbtn == btn as! UIButton { continue } if (btn as! UIButton).frame.contains(curbtn.center){ print((btn as! UIButton).tag) } } return curbtn }
本文共 414 字,大约阅读时间需要 1 分钟。
fileprivate func buttonCenterInButtons(curbtn:UIButton) -> UIButton { for btn in btnArr { if curbtn == btn as! UIButton { continue } if (btn as! UIButton).frame.contains(curbtn.center){ print((btn as! UIButton).tag) } } return curbtn }
转载于:https://my.oschina.net/zhaodacai/blog/781211