In my class using Xcode we are adding a timer to our game app.
There was no book given for this class and myself and all my other classmates are up a creek on how to write code using objective c. This is supposedly the intro course to Xcode and App Development, but we are clueless on using this language.
We need to fill in these three methods:
//Clock.m file
#import "Clock.h"
@implementation Clock
int seconds = 1;
int minutes = 60;
- (NSString*) currentTime {
//return the value of the clock as an NSString in the format of mm:ss
}
- (void) incrementTime {
//increment the time by one second
}
- (int) totalSeconds;
//return total seconds in the value of an (int).
@end
Does anyone have any links to tutorials or can help fill in these blanks and explain them in simple terms the syntax of the code?