Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create global enum

Tags:

objective-c

How to access enum through all classes. Let me explain:

enum
{
   BottomBackButtonNav = 0,
   BottomNextButtonNav,
   BottomSliderIncreaseNav,
   BottomSliderDcreaseNav,
   PageSwipeLeftNav,
   PageSwipeRightNav,
   NavFromThumbnailView,
   NavFromTOCView,
} NavigationType;

This enum is defined in my MainViewController's header and want to use it to all my views. How to do this, please guide.

Regards.

like image 928
TechBee Avatar asked Aug 31 '10 07:08

TechBee


1 Answers

You can define it in an header file (.h) and import it in each module you need

like image 79
rano Avatar answered Oct 13 '22 00:10

rano