Swift Find View in Array of Views That is closest to the center

前端 未结 0 702
栀梦
栀梦 2021-02-06 09:26

How can you find the view within an array of subviews that has the x coordinate closest to the center of the screen?

This is what I have:

extension UIScrol         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题