I ran into this issue:
I defined a enum type in the header file:
typedef enum {
aView,
bView,
cView
} SCViewType;
and then in my header file, I have:
@property (nonatomic) SCViewType currentView;
In my .m
file, I have this:
- (void) setCurrentView: (SCViewType) view
{
self.currentView = view;
}
And this self.currentView = view
line got BAD_ACCESS error...
Please point me what's wrong with this implementation, and what I should do to fix it?
Thank you!