Instance Method

initWithIdentifier:title:score:maxScore:

Initializes an activity item that holds a score value.

Declaration

- (instancetype)initWithIdentifier:(NSString *)identifier title:(NSString *)title score:(double)score maxScore:(double)maxScore;

Parameters

identifier

A unique string identifier for the activity item.

title

A human readable name for the activity item.

score

The score earned during completion of a task.

maxScore

The maximum possible score, against which the reported score should be judged.