iOS static table view cells with varying row height and Autolayout

172 total views, 16 views today

Posted in iOS

Xcode build gotcha


int a = 5

220 total views, 8 views today

Posted in iOS

LLDB gotcha

208 total views, 4 views today

Posted in iOS

How to make all operations run on a certain thread in iOS

When using pjsip, I had a need to ensure that all pjsip calls must happen on a certain thread, because pjsip uses Thread Local Storage to prevent multiple threads from calling pjsip

Today, I read AFNetworking source code and see that it has this feature. All the code is in AFURLConnectionOperation.m

Read more ›

292 total views, 4 views today

Posted in iOS

AFNetworking gotcha 2

Hi, in this AFNetworking gotcha series, I’ll share something I learn about AFNetworking and remind you of some properties you may overlook


Read more ›

316 total views, no views today

Posted in iOS

Split an implementation file into multiple files in iOS

284 total views, 4 views today

Posted in iOS Tagged with: , , , , ,

Pet Arena

Our first game

Pet Arena is going to be the most exciting game ever.
In the role of a pet master, you have to take care of your pet, train it and have it compete with your friends’ pets via Bluetooth or Wifi. Pet Arena will be a social and fun game.

Read more ›

368 total views, 4 views today

Posted in Mobile Labs Tagged with: , , ,

AVFoundation vs MediaPlayer

No offsense, but I think most developer are just library users now. Some genius have made great libraries for us to use. It ‘s just the usage difficulty that matters. So if we don’t know how to use it, it’s a shame. We ‘re engineers, right?

Today talk is about MPMoviePlayerController and AVPlayer.

Read more ›

536 total views, 20 views today

Posted in iOS Tagged with: , , , ,

DSL in Objective C


  1. Domain Specific Languages by Martin Fowler
  2. Writing Less Code
  3. Domain Specific Languages: Objective-C, Ruby and Java (and Groovy)
  4. UITableViewDSL
  5. How does it work – Expecta
  6. Masonry
  7. Fluent Interface
  8. Fluent interface pattern in Objective-C
  10. ObjectiveCVerbalExpressions

856 total views, 8 views today

Posted in iOS Tagged with: , , , , , , ,

UIWindow in iOS

In this article, I ‘ll share what I know about UIWindow


An app can have many UIWindow. The key window is the one that is designated to receive keyboard and other non-touch related events. Only one window at a time may be the key window.

You call makeKeyAndVisible or makeKeyWindow to make a UIWindow become the keyWindow. Note that UIWindow is hidden by default, so makeKeyAndVisible both makes a UIWindow become keyWindow and set its hidden property to NO

Read more ›

2,192 total views, 72 views today

Posted in iOS Tagged with: , , ,