Archive for the ‘Coding’ Category

Just found a nasty crash with NSZombiesEnabled. A deallocated view was called with performsSelector. huh? who did this?
Turns out that’s a corner case, scrolling was not yet done (because animated) but due to low mem the view was discarded instantly. Then system called the view: hey, done with scrolling! kaboom.
So, rule of thumb: clear your [...]

Google’s not very helpful on this error. NSInternalInconsistencyException ‘Attempt to create two animations for cell’
After banging my head against the wall several times, I got the solution – and how simple it is! I’ll post the full code here.
In short, remember all your insert/update/delete operations and make sure only one animation per cell is called.
Remember this [...]

Missing namespaces are a a huge problem in objectivec – something that can’t be solved easily. And the more third-party libs you use, the more trouble it gets.
Imagine, I had to rename my model classes after linking with the MessageUI Framework (InApp Email) because “Message” and “Account” classes are used by Apple. Private ones, not documented, [...]

This is some sort of voodoo hack. Symbolicatecrash sucessfully found the symbols of my app’s addresses (as i keep dSYM and .app around) but failed to symbolicate everything else – UIKit and the whole system stack. BIG FAT FAIL FROM APPLE.
stackoverflow to the rescue. Hassan Abdel-Rahman, I can’t thank you enough.
And Apple, shame yourself.

Apples Crash Reporting sucks. Period. Much too slow, and when you need it most (AdHoc) it’s not there at all.
And tell your Tester to zip and send the crash logs. They won’t even find it!
But there’s light! The combined powers of PLCrashReporter and Infinite Labs awesome implementation come to the rescue!
Everything is open source [...]


top

Switch to our mobile site