See the below link it may helps: http://stackoverflow.com/questions/2846218/how-do-i-use-objc-setassociatedobject-objc-getassociatedobject-inside-an-object
– Mahendra KumarJan 07 '16 at 07:53
The error messages seem quite clear - you haven't implemented the function that you declared in the category and you have called a function that hasn't been declared
– Paulw11Jan 07 '16 at 07:53