Reading Time: < 1 minute 1. Selector http://stackoverflow.com/questions/3482344/what-actually-is-a-selector An example http://stackoverflow.com/questions/10758926/add-selector-to-uibutton [button addTarget:yourObject action:@selector(yourMethod:) forControlEvents:UIControlEventTouchUpInside]; 2. NSNotifications In a way (and in syntax too) it’s similar to Selector, but used in different settings. example here http://www.cocoanetics.com/2009/08/love-to-be-notified/ 3. Delegate methods e.g., UIAlert view, UITextField delegate customized method (example) http://www.raywenderlich.com/29474/ipad-for-iphone-developers-101-in-ios-6-custom-input-view-tutorial 4. Blocks https://developer.apple.com/library/mac/#featuredarticles/BuildingWithBlocks/_index.html example http://stackoverflow.com/questions/7180552/implementing-a-method-taking-a-block-to-use-as-callback 5. GCD My favorite example here. http://www.fieryrobot.com/blog/2010/07/10/a-watchdog-timer-in-gcd/
Reading Time: < 1 minute I visited China with my family a few weeks ago. Shanghai is the flight stop where we arrive and depart. We stayed at the Courtyard Xujiahui, and Four Points by Sheraton at Pudong during our short stay in Shanghai, a few weeks ago. As I have family and esp. little kid nowadays, I prefer western
Reading Time: < 1 minute It was the first time I brought my wife and my daughter there. The weather was a bit hot, as I went there after 9:30 am. We bought the typical things: ribs and eggs from Bobbi (live spring farm), tomato, beans and cucumber from amish farmer. Serenity enjoyed her bagel and apple at the picnic
Reading Time: < 1 minute We took a 2 weeks China trip and came back last Monday evening. A bit exhausted, and at the end of the trip, our daughter got sick, she said she got tummy ache, and needed to go to restroom (lavatory) every 10 min. The fun part of being parents. Some more serious thoughts 1) My
Recent Comments