嗨,我是 xcode 的新手,使用 if 语句表示重量
int weight;
if (weight <10) {
([ input.text * @" 100 " Floatvalue); }
if (weight 10-20){
([ input.text == 1000 + 50 for each kg more than 10);}
if (weight >20 ){
([ input.text == 1000 + 20 for each kg more than 20);}