I have an NSData object stored in my core data. I want to be able to check if it exist or not using an if statement. I can't seem to work it out. I have the variable set up as:
var coreImage : NSData?
and I have tried using:
if (coreImage != nil) {
println("Use core image")
}else {
println("Do something else")
}
I know I have NSData stored in core data but it never runs the if statement as I want it too so I must be doing something wrong?
Can anyone help?
Thanks.