How about this:
// Initialize start, end numbers
if (startNumInt == 0){
startNumInt = 1;
}
NSString* startNumString = [NSString stringWithFormat:@"%d", startNumInt];
[startNum setText:startNumString];
if (endNumInt == 0){
endNumInt = 10;
}
NSString* endNumString = [NSString stringWithFormat:@"%d", endNumInt];
[endNum setText:endNumString];
No comments:
Post a Comment