It happened when I was working on an old project that use nib, and I converted it to use autolayout.
Everything was fine, except when I tried to present a table view controller, it crashed.
internal error. Cannot find an outgoing row head for incoming head
This is an error which I could not find a proper solution. But here’s what I did.Continue reading →
For every new version of an iOS app, a developer is given 100 promo codes which he can choose to give out freely.
Each code will then be able to redeem a paid app from iTunes app store.
There are a few services that helps in managing and distributing these codes. I will be covering 3.Continue reading →
This is very well answered in StackOverflow.
1 2 3 4 5
I have everything setup correctly, but just somehow the localized string is not correctly showing on simulator/device. It is still showing the base string.
I find out this could be due to a change in your base storyboard, and yet it is not correctly reflected.
Select the localized storyboard eg. Chinese (Simplified)
In File Inspector, toggle from “Localizable Strings” to “Interface Builder Cocoa Touch Storyboard”. This will retain the strings you already had, so you don’t have to worry.
Now, change it back to “Localizable Strings”, and things should be updated!
There are times when you want to have the same database in both a device and a simulator. For my case, I have a photo application which takes photo using the camera. That cannot be nicely tested using a simulator, hence I always test with a real iPhone.
Then comes a time when I want to move the database to simulator, which is faster to run.
This post explain the steps of copying over.Continue reading →
Core Data remains a nightmare framework, with many lines of code to get started.
Apple provides a snippet section just for Core Data. Browse through it, be afraid, then appreciate the 2 libraries I will be introducing here.
In this post, I will explain a step by step to set them up, for there is a lack of proper documentation.Continue reading →