0

When i use the following code i am getting the error message that says

""_CGAffineTransformMakeRotation", referenced from:"

    companyNameLbl.transform=CGAffineTransformMakeRotation(30);

Can anyone please tell me what will be the reason for this error.

surendher
  • 1,374
  • 3
  • 26
  • 52

1 Answers1

2

If I remember correctly, those transformations require that you link against the CoreGraphics Framework.

See How to "add existing frameworks" in Xcode 4? if you have difficulties adding new frameworks in XCode.

Community
  • 1
  • 1
J_D
  • 3,526
  • 20
  • 31
  • a.k.a. QuartzCore/QuartzCore.h – Sean May 23 '12 at 13:05
  • 1
    @Sean: No, link against, not include. If he's already using the function, he's presumably already included the framework header. – Jonathan Grynspan May 23 '12 at 13:08
  • @Sean It is more about the linking that the inclusion of the header file, otherwise he would have got a compilation error, not this type or linking error. – J_D May 23 '12 at 13:09
  • 1
    Add the CoreGraphics framework, I just tested it on my side. Without this framework I get the exact same linking error that you have. – J_D May 23 '12 at 13:15