in .h file :

in .mm file :

in -(id) init function….Add following lines…

//.…..These are the different flags .Just try each flags…!!!

Also add the following function….