I’m reading and working with the Core Data eBook and see a diffirence in the addName button click.
On page 20 it say’s: UIBarButtonItem
And on page 22 is say’s: AnyObject
This is for the same func.
Is there a special reason why i should use AnyObject or wel UIBarButtonItem do as well.
Iv’e seen the AnyObject on more tutorials on the internet.
Can i allways use AnyObject ??