I am working on catching errors in my app, and I am looking into using NSError. I am slightly confused about how to use it, and how to populate it.
NSError
Please refer following tutorial
i hope it will helpful for you but prior you have to read documentation of NSError
This is very interesting link i found recently ErrorHandling