Search code examples
iphonexcode4linker-errorsios5cgrect

Simple Question about CGRectIntersectsRect


I just have one simple question. Everytime I use

CGRectIntersectsRect(view1.frame, view2.frame)

I get a linker error stating the linker cannot find the files necessary to compile this method. I do have QuartzCore imported, I'm assuming theres another header I need. Sadly scouring the internet has left me nowhere, and I known this is definetely a simple issue that I keep overlooking. Any answers are appreciated!

Notice: I am using XCode 4 and iOS 5 beta


Solution

  • Import the CoreGraphics framework also. (Not 100% how to think about the distinction between this and QuartzCore, but they are different.)