一句核心代碼搞定:“控件名稱 + convertRect: 控件坐標 + toView: 屏幕”
// 獲取相對于self.view的坐標
DistributTimeCell *timeCell = [_flowerCheckTable cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:3]];
CGRect cellFrame = [timeCell.timerBtn convertRect:timeCell.timerBtn.frame toView:self.view];
// 獲取相對于屏幕的坐標
UIWindow * window=[[[UIApplication sharedApplication] delegate] window];
CGRect rect=[bView convertRect: bView.bounds toView:window];