Archive for the ‘UIKit’ Category

SlayerStats Brings Halo 3 Stats to iTMS

Thursday, October 16th, 2008
A week ago I ported Halo3X to the iPhone (it was pretty easy, I just had to swap out the interface really), and uploaded it to the app store for $0.99/download. Now you can finally view Halo 3 Stats on your iPhone! Probably the most useful feature (one that would probably go unnoticed) is that the app caches the last gamertag - so you can close the app and reopen it.

You can view more details/download the app here.

Screenshot after the break.

(more…)

UpLoc makes it to the app store!

Monday, August 25th, 2008
uplocicon UpLoc, the app I’ve been working on for a month or so, has finally made it into the iTunes app store. It’s a web service that lets you save locations from the web or your iPhone. Your iPhone then syncs with your uploc.com account - there are a billion uses for this: sending a location to your friend, saving a location that you might not remember, saving a location on your phone so a family member can access it on the web site, and so on.

It’s $8.99 for the app, and the web service is free, so get on over there and register! It’s a really nice interface, I promise :).

-Joe

Implementing UIPushButtons

Sunday, August 26th, 2007
Implementing UIPushbuttons is a lot like implementing a NavigationBar, you simply instantiate, set it to listen to itself for button events, and add a ButtonEvent method somewhere down there. Here’s a quick example:

Instantiating the button (make sure you declared the button in the header file):
pushMeButton = [[UIPushButton alloc] initWithFrame: CGRectMake(10.0f, 10.0f, 120.0f, 65.0f)]; [button setTitle:@”Push Me”]; [button addTarget:self action:@selector(buttonEvent:) forEvents:255];
(more…)

UIKit/CoreGraphics vs. AppKit/Cocoa

Saturday, August 18th, 2007
The iPhone compiler, unfortunately, does not include any of the Cocoa/AppKit UI-oriented classes. This means your stuck with (sigh) CoreGraphics, or the CG- prefix, and the iPhone-specific UIKit with the UI- prefix, rather than the NS- (AppKit/Cocoa) classes you used to know and love. Listed below are some examples of these difference. We will begin with the rectangle structs.
NSRect nsRect = NSMakeRect(0.0f, 0.0f, 10.0f, 10.0f);
Whereas the equivalent in CoreGraphics:
CGRect cgRect = CGRectMake(0.0f, 0.0f, 10.0f, 10.0f);
By the way, nsRect and cgRect are the exact same internally. That is, the origin is defined as the bottom left corner (considering you didn’t change the coordinate plane), and the other 2 initializing components specify width and height from this point.

(more…)