Category Archives: iPhone
iPhoneMinimalist Calculator is out
Minimalist Timer is out

It’s now on AppStore, and also reviewed by Beautiful Pixels.
Timer under construction
How to build Fuego on iPhone
There are two challenges when building Fuego on iPhone:
- to build the boost library on iPhone
- to include appropriate files from the Fuego source and interface with the engine
I created an iPhone project. To build:
- please follow Semmel’s blog to build the boost library to an iPhone framework
- download the Fuego iPhone project from github
- add the boost.framework built in step 1 to the iPhone project downloaded in step 2
- compile
Fuego 1.0, iOS 4.2.
Enjoy~

如何學習 iPhone / iPad 編程
這是一個經常遇到的問題,我推薦三個方法:
1 書本
Beginning iPhone 3 Development: Exploring the iPhone SDK
iPhone Programming: The Big Nerd Ranch Guide
2 課程
Stanford University iPhone Application Development (Winter 2010)
CS 193P iPhone Application Development
3 文檔
Apple Creating an iPhone Application
iOS Application Programming Guide
當然,沒有什麼比實戰更重要,打開 Xcode,開始吧!
Micro-sim 套卡住點算?
iPhone 4 的 micro- sim 插入 3Gs 要加個套,想換卡的時候,有冇試過抽唔返張卡出來的情況呢?感謝梁同事的幫忙,解決方案如下:
1搵張有一定硬度的膠紙
2剪成長條形狀
3慢慢插入卡背位置(如圖)
4慢慢拉出(切記:不要使用暴力)

Animating Views with Blocks example
Apple introduced blocks recently. In the UIView animation documentation, the old way of doing animation is discouraged:
Use of this method is discouraged in iPhone OS 4.0 and later. You should use the block-based animation methods instead.
So what is block-based animation methods? Here is an example:
CGPoint originalCenter = icon.center;
[UIView animateWithDuration:2.0
animations:^{
CGPoint center = icon.center;
center.y += 60;
icon.center = center;
}
completion:^(BOOL finished){
[UIView animateWithDuration:2.0
animations:^{
icon.center = originalCenter;
}
completion:^(BOOL finished){
;
}];
}];
The above code will animate a UIImageView* icon in a 2-second animation. Once completed, another animation will move the icon back to it’s original position.
A sample project can be downloaded here.






About