I have 3 arrays with ints (enums):
static int *openEnv[] = {INGMenuItemLogon,INGMenuItemSpace,INGMenuItemAppointment,INGMenuItemInfo,INGMenuItemSettings};
static int *closedEnv[] = {INGMenuItemLogoff,INGMenuItemSpace,INGMenuItemOverview,INGMenuItemAccounts,INGMenuItemTransfer,INGMenuItemAnalyse,INGMenuItemAppointment,INGMenuItemInfo,INGMenuItemSettings};
int *currentEnv[];
if the user taps on a button i want the currentEnv to change to the openEnv or closedEnv
- (void) tap
{
if( closed ) currentEnv = closedEnv;
else currentEnv = openEnv;
}
But this gives a build errors.
openEnv and closedEnv have 2 different sizes, what should i do to copy it? What can i do so that it makes a reference or copy to its static array?