How to rename Xcode project thoroughly

I’m doing with lot of projects, some projects are similar, thus I can just clone from the
existing project and rename it. But how to rename it completely?

Read More

iOS - handle keyboard in UITableView in UIViewController

Most of the time, we tend to put textField in a tableView, perhaps it is much simpler.

Read More

iOS - event listener to property of property

What does it mean? Let’s look at the view hierarchy

Read More

iOS - crop image based on a mask

I have a mask here (the Sun Goku hair), and I want to put a face to this mask.

Read More

iOS disable support for iPad - hide from iPad AppStore

I’m sure you know about Whatsapp. Whatsapp was not available in iPad AppStore.
To achieve this, change Info.plist file, right-click -> Open as -> Source Code

Read More

iOS - export to ipa thru command line

Recently I have come across an issue which Xcode 6 keep crashing when exporting ipa or validate the app.
I got no choice but have to export the ipa on command line.

Read More

UIScrollView with auto-layout solution for UITextField (keyboard)

I believe there are many people are facing this problem. Last time my approach was to change the the scrollView‘s contentSize upon keyboard appear, and restore to normal when keyboard dismiss.

Read More

Cocos2d-x V3 accurate physics body shape with PhysicsEditor

I mention about TexturePacker in my previous post.
Now is PhysicsEditor.

Read More

Objective C macro - logging wrapper

As we know logging in Objective C is using NSLog. The problem here
is I want to enable & disable the logging by changing a flag, NOT
remove NSLog when don’t want to see the log; add NSLog when want to
see the log.

Read More

Cocos2d-x v3 open URL

In Cocos2d-x (I’m using version 3), there is no built-in method to open an external URL. However, this can be achieved. Here I’m only showing on iOS & Android platform.

Read More