How to access iOS photo library / use Objective-C properly?

So to use the method(the last code you wrote), should i just simply include MyviewController.h where at .cpp file that i wanna call?

and is it ok that i make MyViewController.cpp instead of MyViewController.m?