Empty Arrays and iOS 7 SDK
Objective-C and Swift
1
Posts
1
Posters
2
Views
1
Watching
-
Just updated my XCode from 4.6 to 5, and along with it the iOS7 SDK. I noticed that all operations (e.g. Predicate filters etc) I attempt to perform on empty NSArray or NSMutableArray cause an exception. (NSInvalidArgumentException) My arrays are instantiated (so they are not Nil), but they have 0 entries. So code that used to work fine in XCode 4.6 now crashes, and I have to add an extra IF to check if the array.count == 0 before running that line of code all over my app. Anyone else also experiencing this issue?