c function from obj c

Discussion in 'iPhone/iPad Programming' started by jagatnibas, May 8, 2009.

  1. macrumors regular

    Joined:
    Jul 28, 2008
    #1
    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 ?

    --Jagat
     
  2. macrumors regular

    Joined:
    Jun 10, 2008
    #2
    Yes, it's possible. Call the C code as if it's C code.
     
  3. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #3
    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