iPhone Tutorials

iPhone Tutorials
June 26, 2011 Oskar



Soon I will post some tutorials of some recent iPhone apps I’ve put together.

static WordCheatEngine *sharedEngine = nil;

#pragma mark Singleton Methods
+ (id)getEngine {
    @synchronized(self) {
        if(sharedEngine == nil)
            sharedEngine = [[super allocWithZone:NULL] init];
    }
    return sharedEngine;
}
+ (id)allocWithZone:(NSZone *)zone {
    return [self getEngine];
}
- (id)copyWithZone:(NSZone *)zone {
    return self;
}
- (NSComparisonResult)compare:(WordFeudString *)otherObject {
    if (self.point > otherObject.point) {
        
        return (NSComparisonResult)NSOrderedAscending;

    }
    
    if (self.point < otherObject.point) {
        return (NSComparisonResult)NSOrderedDescending;

        
    }
    
    return (NSComparisonResult)NSOrderedSame;
}

Comments are disabled. Please continue the discussion in the Forum.
Showing legacy comments below.

5 Comments

  1. Knut 8 years ago

    hmmmm, – but why not place Mac OS on a Nokia N900. It has already been done. This runs Meamo, a Debian Linux. The new N9 runs MeeGo and is not made so configurable. The N900 also runs Android – latest version and end up being one of the fastest.
    I dislike that Apple tries to control what I use my phone to, and how I use it.

  2. DG 8 years ago

    “I dislike that Apple tries to control what I use my phone to, and how I use it.”

    God I hate comments like that. You bought a license to do certain things with the hardware/software. I suspect you knew that BEFORE you parted with your money.
    Deal with it!

  3. Aftab 8 years ago

    good job bro, looking forward for ur tutorials and waiting for one more good work .

    • Platon 7 years ago

      Thank you so much. A couple of quick cahnges did the trick!Now I have another question for you. I dug through many pages of these questions, but didn’t see another like this.I developed the site on our box (LAMP), client approved and I copied the site to their local server (WAMP). Everything works fine on their production box, except today I tried to add a new Scoring Range and Route to one of the quizzes (this is the first WPSS change I’ve tried to make on their box). It reloads the admin page and says Options Saved , but no new range appears. I can’t set the quiz to save to database either. It says Options Saved , but the checkbox is still empty. It doesn’t appear that any admin cahnges are being written to the db.Of course, all this still works perfectly on our dev box (where the site was copied from).Any ideas?Best regards,Dave

    • clpvbz 7 years ago

      UpfbMR eairyczfcfga