Category Archives: iPhone

iPhone

Shaking iBooks

iPhone

Minimalist Calculator is out

Minimalist Calculator Black

available-on-appstore

iPhone

Minimalist Timer is out


It’s now on AppStore, and also reviewed by Beautiful Pixels.

iPhone

Timer under construction

I decided to write a timer app when I saw this nicely designed dial.

Preview:

Go iPhone

How to build Fuego on iPhone

There are two challenges when building Fuego on iPhone:

  1. to build the boost library on iPhone
  2. to include appropriate files from the Fuego source and interface with the engine

I created an iPhone project. To build:

  1. please follow Semmel’s blog to build the boost library to an iPhone framework
  2. download the Fuego iPhone project from github
  3. add the boost.framework built in step 1 to the iPhone project downloaded in step 2
  4. compile

Fuego 1.0, iOS 4.2.

Enjoy~

iPhone

如何學習 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,開始吧

iPhone

Micro-sim 套卡住點算?

iPhone 4 的 micro- sim 插入 3Gs 要加個套,想換卡的時候,有冇試過抽唔返張卡出來的情況呢?感謝梁同事的幫忙,解決方案如下:

1搵張有一定硬度的膠紙
2剪成長條形狀
3慢慢插入卡背位置(如圖)
4慢慢拉出(切記:不要使用暴力)

iPhone

3 的 simcard 真細心

大細兼容~

iPhone

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.

iPhone

iPhone Edit before Dial

呢排成日掛住睇世界杯,荒廢正事。周末上落大陸,iPhone 打長途電話冇內置 edit before dial 功能,有時想打國內電話加個字頭,就覺得麻煩。加上用開的一個 app 向 iOS 4 唔 work,於是自己郁手寫一個,算係做返dd正經嘢。攪掂 … XD