IOS determining how a point in a specified area

The situation will determine the location of the encounter in the development of iOS

iOS these features have their own function implementation.

Determining whether a point in this region rect

bool CGRectContainsPoint (CGRect rect, CGPoint point )

determines whether a rect rect in another

bool CGRectContainsRect (CGRect rect1, CGRect rect2 )

Guess you like

Origin www.cnblogs.com/Free-Thinker/p/11354059.html