NSPredicate to check the order set count > 0 iOS swift

 Problem:

In predicate NSPredicate to check the order set count > 0 iOS swift

Solution:

let predicate = NSPredicate(format: "object.@count > 0")

You can easily check the order set count as like above.

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift