iPhone/iPod

26th January
2010
written by Jeremy

In this post I will be showing how web developers can take their webapps and “transforming” them into full fledged iPhone apps with Phonegap.

Well lets get started. Firstly you are going to need two things:
1. Phonegap
2. My modified JQTouch Todo example demo

Once both of those files are downloaded. Open the Phonegap folder, once inside, open the the “iPhone” folder. You should see this:


Open the “www” folder and delete everything in there. Now drag and and drop all the files in the “webstuff” folder into the “www” folder. Open the Xcode file and you should see this:

Now if you “Build and Go” you will have a full fledged native iPhone app made just with HTML and Javascript. Here is what you get:

Now this is just one example of what you could do. If you are a web developer and you already have a webapp out there that you would like to make into an iPhone app, this makes it simple to port anything you have made. You can even submit these to Apple to be put on the App Store.

If you really want to get a full release out, there are a few extra steps you are going to need to take. First, replace the Default.png and icon.png. The Default.png is the “splash screen” picture, by default it says “Phonegap” and the icon.png file is (obviously) the icon picture.


Lastly, when porting a webapp, website, or anything, you want to have a nice clean UI. So I recommend using JQTouch, iUI, or iWebKit to give your app a nice iPhone-ish finish.

If there is anything you think should be added to this article or any thing you want to say, leave it in the comment section.

~Jeremy

18th January
2010
written by Jeremy

I ran across this website today. It’s a great website full of questions and answers about how to fix random any EXC_BAD_ACCESS problem for Cocoa or Cocoa Touch. It is still in beta, but give it a little time and it will turn into a beuty.

http://www.excbadaccess.com/

10th March
2009
written by Jeremy

Sure, you can drag and drop a button onto your windows using IB, but they do not look nice, nor is that as much fun as doing it from scratch.

Using the loadView method we will load fancy background by loading a nice image. But first we need to declare some variables.  In the viewController.h file we need to set up our contentView.
UIImageView *contentView;

Now in our viewController.m file we will set up our window inside the loadView method.

contentView = [[UIImageView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
[contentView setImage:[UIImage imageNamed:@"image.jpg"]];
[contentView setUserInteractionEnabled:YES];
self.view = contentView;
[contentView release];

Now that our windows is all nice and pretty, we can add our button(s). For the purpose of this tutorial, we will be making one button in the center of the window.

Now, lets create the button.

UIButton *startButton = [[UIButton alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 180.0f, 130.0f)];

Now we can add an image as the background of the button

[startButton setBackgroundImage:[[UIImage imageNamed:@"squareButton.png"] stretchableImageWithLeftCapWidth:110.0 topCapHeight:0.0] forState:UIControlStateNormal];

Now lets center our button

[startButton setCenter:CGPointMake(195.0f, 208.0f)];

Then you need to add the button to the view

[contentView addSubview:startButton];

So, there we go, a nice looking button, well depending on your photoshop skills. So your loadView should look like this:



- (void)viewDidLoad {
contentView = [[UIImageView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
[contentView setImage:[UIImage imageNamed:@"284.jpg"]];
[contentView setUserInteractionEnabled:YES];
self.view = contentView;
[contentView release];
UIButton *startButton = [[UIButton alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 180.0f, 130.0f)];
[startButton setBackgroundImage:[[UIImage imageNamed:@"squareButton.png"] stretchableImageWithLeftCapWidth:110.0 topCapHeight:0.0] forState:UIControlStateNormal];
[startButton setCenter:CGPointMake(195.0f, 208.0f)];
[startButton addTarget:self action:@selector(playSound:) forControlEvents:UIControlEventTouchUpInside];
[contentView addSubview:startButton];
[super viewDidLoad];
}

Hope you enjoyed
~Jeremy

12th February
2009
written by Jeremy

I was reading a magazine the other day and came across an article about this game engine.  It is called the Torque Game Engine.  With it, you can make games for Mac, PC, iPhone, Xbox 360, and the Wii. You can download the free trial and check out the documentation.

Torque Game Engine

12th January
2009
written by Jeremy

You may already know that Stanford is offering an iPhone Programming class. Well, after some googleing, i found the lesson plan online, so here it is, I’m sure this will come in handy for at least some of you out there

http://www.stanford.edu/class/cs193p/cgi-bin/index.php

7th January
2009
written by Jeremy

After working with the iPhone SDK, and reading bits and pieces of the iPhone Developer Cookbook (thanks George).  I have created a Password Generator, Amazon Book Search, and a Weather App.

If you like the site and have found it helpful, the apps will be available on the App Store for 99 Cents (US Dollars) when I relieve the email from Apple with my Info.  All proceeds go to hosting the site and buying equipment to make this site work.

I will post links when they are up.

23rd December
2008
written by Jeremy

Aleksander Grande wrote this amazing guide that steps you through everything from IB to the code. I wish this was around when I started programming for the iPhone.

http://grande.cc/?p=41

20th December
2008
written by Jeremy

I was “Googleing” around for some iPhone code snippets, but what I found was a treasure chest of code snippets… 31 iPhone Apps with full documentation and source!! I think you iPhone devs will enjoy this.

http://appsamuck.com/

10th December
2008
written by Jeremy

As anyone with an iPhone knows, the camera on the iPhone is under par to say the least. With this $20 device you can as a 6x Zoom to your iPhone.
Check it out: http://www.geekalerts.com/iphone-telescope/

9th December
2008
written by t8trtot757

With the big release of the new iPod nanos and the refreshment of color; iHome has released a new dock. The new dock codenamed iH15W has a nifty little feature. To match the rainbow of new colors, this dock changes LED lights inside at any given time to create a pshycodelic experience. It holds two Reson8 speakes, an ipod dock, 3.5mm aux. port, and two easy-to-carry handles for portability. This mood-ring esque device will throw you $59.99

cialis compare levitra viagra good Buy Levitra cheap vardenafil,