Choose Window-based Application
Monday, 18 April 2011
Universal App Using Xcode 4
Create New Project
Choose Window-based Application
Give a Project Name (aProjectName) , select Universal in the Device Family field, then create aProjectName in a desired location.
Choose Window-based Application
UITouch
-touchesBegan:withEvent: { // Finger down}
-touchesMoved:withEvent: { // Finger moved }
-touchesEnded:withEvent: { // Finger lifted }
-touchesCancelled:withEvent: { // Interrupts, e.g. phone call, alarm, text }
If override one method, it is recommended to override all of them.
Seed of the random variables
Seed can be thought of as the starting point of a random function. Same seed will create a same set of random variables for a defined random function.
Static Variable in C
A static variable is a variable that has been allocated statically — whose lifetime extends across the entire run of the program. This is in contrast to the more ephemeral automatic variables (local variables), whose storage is allocated and deallocated on the call stack; and in contrast to objects whose storage is dynamically allocated.
Ipad/Iphone 3D
这个paper可能可以帮我们了解一下这背后的技术 https://circle.ubc.ca/handle/2429/2633
使用iPad2摄像头追踪的裸眼3D技术
无论哪一项令人看到3D显示技术,都是欺骗眼睛的玩法。有些技术利用特制眼镜、有些裸眼3D技术利用色差,最终实现立体的效果,但这个由法国的研究所研发的iPad裸眼3D技术却从另一个方向着手。
开发人员想出一个非常聪明的方法,就是利用iPad 2的前置摄像头追踪人脸,使用户从不同角度看iPad都能制造出深度。其效果是如此让人惊叹。
目前这项技术仍处于研发阶段,尚未正式推出。
无论哪一项令人看到3D显示技术,都是欺骗眼睛的玩法。有些技术利用特制眼镜、有些裸眼3D技术利用色差,最终实现立体的效果,但这个由法国的研究所研发的iPad裸眼3D技术却从另一个方向着手。
开发人员想出一个非常聪明的方法,就是利用iPad 2的前置摄像头追踪人脸,使用户从不同角度看iPad都能制造出深度。其效果是如此让人惊叹。
目前这项技术仍处于研发阶段,尚未正式推出。
Can't wait
乔布斯授权传记名为《iSteve》
苹果公司传奇人物乔布斯的首个授权传记将在明年年初推出,书名已定为《I斯蒂夫》。据出版社宣布,56岁的苹果公司总裁乔布斯目前正在和他的传记作家合作创作他的第一本授权的传记,传记目前确定名叫《I斯蒂夫》(iSteve),将在明年年初推出。
这本书由西蒙与舒斯特出版社出版,由前CNN电视台CEO和《时代》杂志编辑沃特·伊萨克森执笔,这位传记作家此前曾经给爱因斯坦、本杰明·富兰克林和基辛格写过传记。
西蒙与舒斯特出版社在近日公布的声明中表示:“这个题材和作者的搭配是完美的,这肯定将成为这位世界上最伟大的创新者的里程碑之书。”
乔布斯是苹果公司的灵魂人物,乔布斯本人的健康与去留问题也因与胰腺癌做斗争而一直受到关注
西蒙与舒斯特出版社在近日公布的声明中表示:“这个题材和作者的搭配是完美的,这肯定将成为这位世界上最伟大的创新者的里程碑之书。”
乔布斯是苹果公司的灵魂人物,乔布斯本人的健康与去留问题也因与胰腺癌做斗争而一直受到关注
Play a sound with AudioToolbox framework
The following Code is from Dr.David Fisher from Rose Hulman College. He has iOS video Lectures on itunes. Great great Lectures!
//Create a System sound struct soundID
//Get a path to our sound resource
//Connect the system sound ID to that resource
//Play the sound!
Add existing frameworks in Xcode 4
- In the project navigator, select your project
- Select your target
- Select the 'Build Phases' tab
- Open 'Link Binaries With Libraries' expander
- Click the '+' button
- Select your framework
- (optional) Drag and drop the added framework to the 'Frameworks' group
UIView animation
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(animationDidStop: finished: context:)];
----do something-----
[UIView commitAnimations];
view.bounds
zooming using bounds changes the view container, changes identity matrix size
zooming using affine transform doesn't change identity matrix size
Indie 的意思
According to the dictionary, 'indie' is an informal version of the word independent. For many, it has come to symbolize originality and forward-thinking, especially in music and design.
By this definition, indie is any business or designer that is not associated with a large company. Indie can also define the consumer who chooses to support small business, independent record labels and handmade items rather than shopping at big-box stores.
我最喜欢的定义 -- an obscure form of work which you only learn about from someone slightly more hip than yourself.
Subscribe to:
Posts (Atom)
