NSInvalidUnarchiveOperationException due to NSLayoutConstraint


Controller crash with the following error? Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: NSLayoutConstraint One quick solution:: Open the .xib file of that controller. click on the view and go to file inspector in the right pane. deselect auto layout. build and run the application. Works like a charm. 🙂  

NSUnknownKeyException’, reason: ‘[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key keyPath.’


Okay so here is just another annoying error I faced during development. Here is the error log NSUnknownKeyException', reason: '[<UILabel 0x17428340> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key keyPath.' Reason 1: Wrong or expired reference of the View(s) to the IBOutlet with the file owner. In interface builder you linked your … Continue reading NSUnknownKeyException’, reason: ‘[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key keyPath.’

Make a Custom ListView row (with clickable buttons in it) selectable using a custom CursorAdapter


It happens that sometimes you are making an interactive app not using buit-in classes but your own custom classes to have better and prettier interface. For that you often end up creating a custom list view that inflates layout (for a single row) from a separate XML file. But what if you want to make … Continue reading Make a Custom ListView row (with clickable buttons in it) selectable using a custom CursorAdapter

Android Warning: Exported activity does not require permission


Sometimes even the warnings get annoying because you just can't find anything wrong in your code. While working on an android app, you may encounter this warning so you better get rid of it by just following the easy steps. Usually there are more than one way to debug a bug. All you need to … Continue reading Android Warning: Exported activity does not require permission