You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}```
because there are cases when values for rectangles do no match (because of the floating point) the frame of the tapped view.
Example : you have in your array one rect with origin.x = 56.666444, but you tapped view has origin.x = 56.666452, so it will give you out of bounds index for that card, resulting in crashing the application.
That's why you don't search a rectangle in an array of rectangles.
The text was updated successfully, but these errors were encountered:
Hi, you might want to replace the code for
- (void)handleTap:(UIGestureRecognizer *)gestureRecognizer
with
}
The text was updated successfully, but these errors were encountered: