I wrote already about nm which is a great tool to analyze the binaries. This can be used to quickly check whether a binary supports BitCode or not. Just open a terminal where your binary stored and use this command: nm -a -U -A -m <filename> | grep -i bitcode
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 […]
To know how symmetric/asymmetric encryption is used in every day
Just found this good reading about how the symmetric and asymmetric encryption is used in email clients, ssl etc. In an understandable way. http://www.infosecisland.com/blogview/4497-Public-Key-Private-Key-Secret-Key-Everyday-Encryption-.html
UI Design: avoid “hamburger” icon and hidden menu
Just read a nice article about the icon frequently used to present a menu () – and whether a “hidden” menu is appropriate – it isn’t. https://lmjabreu.com/post/why-and-how-to-avoid-hamburger-menus/ By the way, I just went after who and why and when find it out: it was a guy at xerox – you know the company found out […]
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 […]
Viewing a Viewcontroller of a Storyboard in several device aspects at the same time
The preferred way to design a viewcontroller is using storyboard and use autolayout. To help to set up the layouts properly and at the same time visible check the result open more device layouts in preview mode – it is the best moving it to a separate window. Here are the steps: Open the storyboard […]
ARC-Block-Avoid retain cycles and crashes
Using blocks which captures self (explicitly or automatically by referencing an iVar!) you have the chance to a retain cycle where the block keeps self and self keeps the block or a crash when self is released. This is true for Obj-C as well as for Swift. The proper usage declared by Apple itself: store […]
Programming with GUTs
A good presentation about unit testing – the proper way 🙂 https://vimeo.com/108007508
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 […]