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/
App dev
blog
finance
Links
Major
Saint Louis
side-money
Follow Us
Meta
Google Ads
Archives
Pages
Recent Posts
Tags
401K
app
apple
baidu
berkshire
berkshire-hathaway
blackberry
BRK.B
Buffett
CFA
China
China-mobile
China-Stock-Market
CHL
credit-card
Crocs
CROX
EDU
GM
Google
Heelys
HLYS
HMIN
home-inns
ICBC
iPhone
ipo
IRA
LFC
LFT
longtop
mcdonald
Mindray
MR
new-oriental
NINE
Panera
retirement-calculator
sbux
shanghai
shanghai-composite-index
starbucks
Vanke
Warren-Buffett
XFML
Categories
- 401k and Personal Finance
- advice and tips
- Beijing Olympics
- Business
- car
- Career
- CFA
- China
- Chinese articles
- DIY
- earning
- Economy
- Edu-and-Ladue-School
- exports
- Featured
- finance
- Fun
- Fun Video
- gadgets
- Investing
- iOS
- iPhone app
- IPO
- Java
- kids
- Life
- Life Tips
- Master Series
- math-and-edu
- Politics
- Saint Louis
- Shanghai Composite
- Site Info
- Software development
- Stocks
- Technology
- Travel
- Uncategorized
- video
- Web
- Windows
Recent Comments