桁数が少ない場合に、前に 0 を付ける桁数が少ない場合に、前に 0 を付けたいとき、02d これだけでokです。例えば、self.resultTime.text = [NSString stringWithFormat:@"%02d,time];