How to use CCLoader in cocos2d-x ios game in c++ using xcode

I want to use a loader screen just like in every game there is a loading screen and their is some activity done in the background like database linkage or creation of tables etc.
How can I use it in my cocos2d-x game.I am using xcode and using c++. I Working on cocos2d-x-2.2.2
If anyone has a sample or demo please share it.I will be thankful