PDA

View Full Version : c function from obj c




jagatnibas
May 8, 2009, 09:44 AM
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



kalimba
May 8, 2009, 10:27 AM
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
Yes, it's possible. Call the C code as if it's C code.

firewood
May 8, 2009, 12:52 PM
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).