First, I apology for this newbie question. I’m new in Objective C and OpenCV
the normal method declaration in Objective-C is like that
Function functionName = [[Function alloc] init];
but when I use OpenCV class it says (for example CvMat) receiver type is not an Objective C class.
or am I suppose to write the code in C++ syntax ?
You write the code in C++ syntax. Objective-C is actually a superset of C++ which means that any C++ program is also a valid Objective-C program (well in most cases anyway). Objective-C just adds a whole lot of functionality to what already exists in C++.
When I was developing an openCV app for iOS, here were the main stumbling blocks:
Compiling OpenCV as a static library. It’s the only way to use OpenCV in iOS, and is not an easy task if you’ve never done anything similar before. There are a couple of great blog posts about how to do it, such as this one.
Armv6 and armv7 – make sure you have static libraries compiled for both (or a universal binary), as iOS runs on both.
When you’re coding, just code as you would for c++. Here’s a chunk of example code you can refer to.