c function from obj c

Discussion in 'iOS Programming' started by jagatnibas, May 8, 2009.

  1. macrumors regular

    Jul 28, 2008
    Hi All,

    I am using an existing c code. I have added them to my project and compiled successfully. Now I want to call a certain function from my viewdidload function of the view controller . Is it possible ? what is the right approach ?

  2. macrumors regular

    Jun 10, 2008
    Yes, it's possible. Call the C code as if it's C code.
  3. macrumors 604

    Jul 29, 2003
    Silicon Valley
    You can write almost the entire app using standard C. Just call it from the app delegate, or from any other object message. Obj C is just C (with stuff added that you don't need to use at all except to connect with UIKit).

Share This Page