iPhone app update available in App Store

Good news for those of you who tried to use the first revision of our Basketball Statware iPhone app and found yourself looking at a silently failing crash when you sync.

Version 1.0.1 of Basketball Statware is now available for download in the App Store. Also, a little bug was fixed up concerning visiting the event list view when you do not have any events in your game.

Here is the URL for the product:

Basketball Statware

And here is a link to the revision history document for this application on our support web site:

Basketball Statware iPhone application revision history

The next revision of the application is going to have more minor bug fixes and memory leak fixes, as well as a neat feature that switches between a box score summary and an extended box score summary by rotating the device from portrait to landscape mode. This is almost ready to be submitted to Apple for approval, and should be ready by the middle of July.

Droid tethering with PdaNet

By the way, I forgot to mention that while John and I were on our Codestock trip, I got tired of hoping beyond hope that the 2.2 Froyo update would appear on my Verizon Droid and purchased a license for the PdaNet software for Android. (I have a great fear of open wi-fi access points.)

It worked flawlessly with both the Mac OS X and Windows 7 operating systems on my BootCamp MacBook Pro. Nice job June Fabrics. Here is a link to their Android product:

PdaNet Android tethering

The demo of the software will run for 14 days, and then it will start blocking secure web sites. Also, you install a client application on your Windows or Macintosh computer that you need to run, along with running the PdaNet application on your device and activating the USB or Bluetooth mode. I did not try the Bluetooth mode, I just brought my Droid USB cable and communicated that way.

I highly recommend the software for Droid owners who need an internet connection on their laptop while on the go.

CodeStock 2010, Day 2

Here were the sessions that I attended on day 2 (Saturday, June 25, 2010) of the CodeStock 2010 developer’s conference in Knoxville, Tennessee:

  • Web and Cloud Development with Visual Studio 2010 by Glen Gordon
  • Introduction to iPhone Development and A Quick Tour of the iPhone SDK by Gun Makinabakan
  • Transitioning from WinForms to WPF by Miguel Castro

Special thanks to Michael Neel and all his peeps for putting on an excellent conference. John and I had an informative time, the venue was better than last year, and the hotel being right across the street was super convenient.

iPhone app accepted!

Good news!

Our iPhone app was accepted into the iTunes App Store on the very first try!!!

I am far too tired to post details right now, I will modify this message after I recover a bit. For now, if you want to see it, fire up your iTunes, go into the App Store, and search for Basketball Statware.

CodeStock 2010, Day 1

Here were the sessions that I attended on day 1 (Friday, June 25, 2010) of the CodeStock 2010 developer’s conference in Knoxville, Tennessee:

  • Effective Interface Design by John Kellar
  • Effectively Using IntelliTrace by James Ashley
  • F# and Functional Programming by Chris Marinos
  • Visual Studio 2010 Architecture, Modeling, and Visualization by Jennifer Marsman
  • High Level Overview of Android Development by Roger Heim

All of the presenters I saw did nice jobs with their presentations. And to cap the night off, instead of sticking around the Bijou after the keynote was complete and getting loaded with all of the other developers, my coworker and I attended a local minor league baseball game.

iPhone app submitted to App Store

A momentous occasion, my company’s first iPhone app has been submitted to the App Store. Hopefully it will fly through the review process within minutes and be accepted the very first time. OK, maybe not.

There was one application uploading issue I ran into. The distribution code built just fine after a bit of tweaking, but upon uploading the .zip file to the iTunes Connect page, I got the following error:

The binary you uploaded was invalid. The application-identifier entitlement is not formatted correctly;
it should contain your 10-character App ID Seed, followed by a dot, followed by your bundle identifier.

As it turns out, I needed to make some changes to my Entitlements.plist file that did not appear to be mentioned or documented anywhere. Thanks to the TwoAppGuys and their blog entry iOS4 and the wildcard for the solution to this issue.

I will post again when I learn the ultimate fate of our app.

iPhone code signing issues

So I am trying to get a project started a while back into a state where it can be submitted to the app store, and of course it never goes smoothly. Today’s issue was a bunch of build and code signing errors that occurred when I tried to switch from using an older iPhone developer account to our current one, and added a new development device to the provisioning profile.

Here were the steps that I took to finally get it building and running on my development devices:

  • Regenerate the development certificate and provisioning profile after adding the new development device
  • Move the development certificate from the system area into the login area in Keychain Access
  • Clean out the old provisioning profiles in the Xcode organizer and from the device
  • Add the new provisioning profile to the device
  • Add the new provisioning profile to the provisioning profile section of the Organizer under iPhone Development
  • Change the code signing identity in the Project info Build tab and in the Target info Build tab

Once I did all these steps, it started to build and run on the device. Now I just can’t wait until I try to build for distribution and submit to the App Store. What could possibly go wrong?

2010 Central Ohio Day of .NET

A co-w0rker and I attended the Central Ohio Day of .NET on June 5, 2010. There was quite a bit of good content at the conference, which is a real tribute to the organizers, volunteers, and presenters.

The highlights of my day were sitting in on Matt Casto’s regular expressions talk, Phil Japikse’s M-V-VM primer, discussing the etymology of the MongoDB project with Sam Corder (I still say it was named such after the character in Blazing Saddles), Michael Eaton’s talk on WPF, and Parag Joshi’s demonstration of XNA/Windows Phone 7 game development.

UIButton can sing and dance, too!

Apparently, there is no way to take a UIButton and set it’s property to “selected” for the purposes of having the UI display the button with the background image as it appears in the UIControlStateSelected state. As a result, I decided that I would just track which of my series of UIButton controls was supposed to be selected, set the background image of all the buttons to nil, and set the UIControlStateNormal background image of the button to an image, and it seemed to work OK.

The code to do this, however, was kind of ugly, and my co-worker on this project pushed me to find a better way. The result is the ExpandoButton class that we created and added to the project. For this class (which of course inherits UIButton), I wanted to be able to initialize it to a particular background image, and I wanted to have a message I could send the button to have it switch back and forth from the unselected background image to the selected background image.

Here are the header and implementation files for the ExpandoButton object class:

//
//  ExpandoButton.h
//
 
#import <Foundation/Foundation.h>
 
@interface ExpandoButton : UIButton {
 
}
 
- (void)setSelectedImage:(BOOL)isSelected;
 
@end
//
//  ExpandoButton.m
//
 
#import "ExpandoButton.h"
 
@implementation ExpandoButton
 
- (id)initWithCoder:(NSCoder *)decoder
{
	if (self = [super initWithCoder:decoder]) {
		UIImage *image = [UIImage imageNamed:@"button_normal.png"];
		UIImage *stretchImage =
					[image stretchableImageWithLeftCapWidth:4.0 topCapHeight:4.0];
		[self setBackgroundImage:stretchImage forState:UIControlStateNormal];
		self.backgroundColor = [UIColor clearColor];
	}
 
	return self;
}
 
- (void)setSelectedImage:(BOOL)isSelected
{
	NSString *file;
 
	if (isSelected)
	{
		file = @"button_selected.png";
	}
	else 
	{
		file = @"button_normal.png";
	}
 
	UIImage *image = [UIImage imageNamed:file];
	UIImage *stretchImage =
				[image stretchableImageWithLeftCapWidth:4.0 topCapHeight:4.0];
	[self setBackgroundImage:stretchImage forState:UIControlStateNormal];
}
 
@end

A few notes here about the implementation file. You will of course need to add the stretchable unselected and selected button images to your project and change the names above, along with changing the cap width and height to your needs. Also, the initWithCoder part took us a few moments to figure out, it wasn’t working at first because we weren’t calling the super’s initWithCoder, just the regular old init. And finally, keep in mind that there is no error checking, optimization, or memory leak checking going on here.

To actually use the ExpandoButton, go into your Interface Builder, and from the Library window, select the Classes option, make sure the choice list right below is set to Library, and you should then be able to scroll the list and see an ExpandoButton, which looks just like a UIButton. Put that object on your view and set the size and title if you wish. VERY IMPORTANT: Make sure to set the button type of your ExpandoButton to Custom instead of the default of Rounded Rect.

Then, in your view controller header file, set up an IBOutlet with type of ExpandoButton (don’t forget the header or @class), along with the corresponding @property, and in the view controller implementation file, set up the @synthesize. After you save the files and build, go back into Interface Builder and set up the connection between the IBOutlet and the ExpandoButton on the view. (I hope you remembered where it was. When you set it to Custom and if you do not have any title text, the button sort of disappears.)

If everything is hooked up and working correctly, in your implementation file code, you can do something like this:

[myExpandoButton setSelectedImage:YES];

And the button should show up with the selected background image.

iPad 101: A Magical and Revolutionary Introduction (CIDUG meeting, May 25, 2010)

Justin Munger gave a presentation on some of the new features of the iPad and how to utilize them in the iPhone SDK at the Columbus iPhone Developer User Group on May 25, 2010. The topics he covered were the new modal dialogs, split views, gesture recognizers, and building a universal application for both iPhone and iPad.

His sample code and presentation slides are located on the CIDUG web site at:

http://groups.google.com/group/cidug/files