Anonymous
For the first UIView I would iterate up the chain of each UIView's parent property adding each parent to a Dictionary or Set. For the next UIView I would then follow the same process but I would be comparing against the existing Dictionary or Set. The first parent that I find matching in the dictionary or set I know is the lowest common parent of the two UIViews