Domanda

[taskValues count] is 5 under iOS6.0 and 4 under iOS5.1. Help :)

   NSArray *taskValues = [NSArray arrayWithObjects:task.name, task.description,
                           task.duration, task.notification, task.notificationThereafter, nil];

EDIT:

Solved. It's embarrassing. Of course you are correct. The persisted state on the iOS5 emulator was different from the state on the iOS6 emulator, the underlying data model changed long ago and the iOS5 emulator was never reset. I'm taking an iOS6 app and backing it to work for iOS5.1. You helped me see the light!

È stato utile?

Soluzione

My most probable guess is that task.notificationThereafter is nil when you're running your app under iOS 5.1. Of course, I don't know your application enough to know the cause of that.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top