iOS - handle keyboard in UITableView in UIViewController

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

If your form in UITableView extends UITableViewController, then you can skip the post, UITableViewController will handle this issue for you.

Read More

iOS - event listener to property of property

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

1
2
3
JSView
|---- titleLabel
|---- ...

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.

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

Integrate PayPal SDK into Laravel 4

PayPal has release an official SDK to simplify our work. Here I want to show you how to integrate into Laravel 4.

Read More