iphone - How to check line intersect in iOS? -


i want check line intersect in demo example.

https://www.cocoacontrols.com/controls/android-pattern-lock-on-iphone

in example want check when line intersect , show alert everytime when line intersect.

but unable yet.

any idea or suggestions experts highly welcome.

if (cgrectintersectsrect(rect1, rect2))  {    //alert want show when intersection occurs. } 

rect1 -> first rectangle examine.

rect2 -> second rectangle examine.

returns true if 2 specified rectangles intersect; otherwise, false. first rectangle intersects second if intersection of rectangles not equal null rectangle.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -