-1
可能性の重複同じ番号を表示:
trouble displaying the same number twiceトラブルは二回
私は二度数値を表示していくつかの助けを必要としています。私は数字を入力し、私は彼らが別のUILabel
に同じ画面上に他のどこかに表示するボタンの計算を押した後
-(IBAction)calculate
{
double lengthNum = [length.text doubleValue];
double widthNum = [width.text doubleValue];
double ansNum = lengthNum * widthNum;
NSString *ans = [NSString stringWithFormat:@"%1.4f Units^2", ansNum];
answer.text = ans;
}
。前もって感謝します。
あなたはすでにこの質問をし、それが閉じられました。なぜあなたは再び尋ねるのではなく尋ねるべきです。 http://stackoverflow.com/questions/8531751/trouble-displaying-the-same-number-twice/8531827#8531827 – Saphrosit