Tuesday, April 27, 2010

Currently I am trying to create simple game for iPhone. To create game first thing I needed to learn is to create custom view and custom drawing. So here I am putting down my learning in hope that it will help some one who started learning iPhone development.

I started with creating new window based project and named it CustomView.

Then I created new class named CustomView and derived it from UIView.

After creating class derived from UIVIew, we need to make sure that application's window add newly created class as its subview like shown in code below.

Wednesday, April 21, 2010

Recently I started to learn iPhone development just for fun. iPhone sdk comes with great IDE which has great tool like memory leak finder, profiler, interface builder and other such tool. To create UI for iPhone application interface builder is great tool, but sometime we need to create control programatically at runtime. I also faced same situation to create UIButton control at runtime.

So here I am sharing my learning to create UIButton at runtime and adding it to view.

In following, I am creating UIButton named customButton, setting its location and size on screen and then image for normal and highlighted state.

Monday, April 12, 2010

Recently I needed to create video demo for one for my developed application, and I needed to remove some unwanted portion from video. In windows there are plenty of application for doing so, but now I use Ubuntu operating system. I search for video editing software for Ubuntu and I found one great application.

Its command line tool and its name is ffmpeg.

It can cut video clip from large video, if you want to crop video it support this as well and it support wide range of video codec.

Wednesday, April 7, 2010

Recently I was not able to post anything new. I was busy in updating Reaction game with new game option called Speed Match.

In Speed match you have to remember shape and you have to answer if currnely displayed shape is matching previous shape or not. This game help you to improve your reaction time, working memory and also information processing speed.

Here are few snaps from game.

Scoring is still not in proper shape, i have not considered time taken to answer. I am currenly working on that will update it soon.

If you are instrested in code than i have uploded code on gitorious. To try game on N900, add extra devel repository to application manager and then type "apt-get install reaction" on xterm.