Category: Dev

Strange UIAlertView crash

On iOS8+ presenting an AlertView can lead to a crash: NSInternalInconsistencyException what you cannot really catch. Spending quite some time around this I realized the issue comes when the keyboard is open. Closing the keyboard (endEditing) solves the issue. I also found a good thread about this at stackoverflow  

Strange issues with certificates on iOS

Good to know: in case of HTTPS/SSL/TLS connection iOS devices cache the used certificate. The side effect come along when you create (get) certificate at runtime and try to use them to connect to a server. The first time you get the certificate challenge, but not the second time – at least if you try […]

const pointer to const memory… what?

After several years I found lots of people – and me 🙂 – still confused about the pointer declarations – if it contains some const keyword somewhere. So const char * or char const * or char * const still confusing. To keep it simple: read it backward as this excellent post describes: Clockwise/Spiral rule So: const char * is equivalent […]

Blocks in Objective-C

Blocks in Objective-C Quick overview Blocks are the closure pattern implementation in Objective-C. Blocks are objects containing code like a method but blocks are standalone objects (not belonging to a specific class/instance) encapsulating and capturing the code and variables enclosed in the beginning and closing brackets. You declare a block type or variable this way: returnType […]