Is there a way to set a property after a delay? Such as:
// Compiler hates this
[self performSelector:@selector(imageView.image) withObject:[UIImage imageNamed:newImage] afterDelay:0.5];
Or do I have to create a new method to be a called to put the setting of the property in? The above seems so simple.
Yes the default name of the setter for a property named
imagewill besetImage.When you do not set the setter method it will generate a method prefixed with
setthen camel cased and it will accept a parameter of its type.Ex.