Posted tagged ‘App Store’

iPhone Dev: Button for iPhone (not Touches)

January 2, 2010

The App Store rejected my first attempt at submitting an app based on “Reachability” (which I’m still trying to resolve) and showing a call button (even to devices incapable of placing a call, such as iPod Touches). Turns out what I was looking for is somewhat easy… at least the part that checks if the device is capable of calls. See code below:

- (BOOL)deviceCanMakePhoneCalls
    BOOL canMakePhoneCalls;
    if ([UIApplication instancesRespondToSelector:@selector(canOpenURL:)]) {
        // OS 3.0, so use canOpenURL
        UIApplication *app = [UIApplication sharedApplication];
        canMakePhoneCalls = ([app canOpenURL:[NSURL URLWithString:@"tel:+44-1234-567890"]]);
    } else {
        // OS 2.x, so check for iPhone
        UIDevice *device = [UIDevice currentDevice];
        canMakePhoneCalls = ([device.model isEqualToString:@"iPhone"]);
    return canMakePhoneCalls;

What this doesn’t do is show the button (or hide it). Now, if you know how to solve for any this more elegantly… please, do tell. AND… if you’d like to help me via ichat or Google Chat to walk through the Reachability issue… lemme know!

App Store Workaround

September 15, 2008

Oh this is stinking BRILLIANT!

If you haven’t heard, Apple rejected an iPhone Developers App & on the surface it sounds as if it was due to a competing feature set to iTunes’ Podcast stuff.

What did the rejected developer do? What any clever and determined developer would. He routed around the damage and used a legitimate back door Apple left ajar… “Ad Hoc” app distribution of course.

Now, what Apple may have just done is unwittingly cracked their own strangle hold on the heavyweight title of iPhone app distribution. I hope someone (possibly Alex) can exploit this to full advantage. Apple’s heavy handedness in this matter is not something we ought to tolerate silently.