objective c - How to convert currency in the simplest form in Xcode? -
hello have been making simple app regarding currency conversion. made 2 buttons named convert $ , other convert £. after add number in text field how can show conversion in label have created
try this,
double curr = [self.mytxtfield.text doublevalue]; double convcurr = curr*(conversion value); [self.mylbl settext:[@(convcurr) stringvalue]];
Comments
Post a Comment