0

I would like to ask that if I have a project written in C and another project of view-based iphone application. How can I access that C methods, properties from the C library while I am working in the iphone project, I mean, how can I use the C project in iphone app?

Any help would be appreciated, Thanks.

i3irth
  • 35
  • 3
  • 1
    Can you be more specific about the library, is it compiled in binary? do u have the source code? do you have the interfaces ".h" files? – mohdajami Nov 22 '09 at 09:34

1 Answers1

2

C APIs can directly be called from Objective-C, there are no special tricks required - just like C, #include the header file and call the function.

Ana Betts
  • 73,868
  • 16
  • 141
  • 209
  • Thank you for your answer. I have to mention before that the C project I use is a third party C project, and I need to use it in my iphone application, like accessing its method, properties, etc. – i3irth Nov 23 '09 at 05:52