how to assign an integer data type array values to a UITextField in iphone

前端 未结 2 1119

how to assign an integer data type array values to UITextField because i have an integer array and i want to display its contents in the textfield

相关标签:
2条回答
  • 2021-01-27 11:04

    try this,

    NSString *intergerString = [NSString StringWithFormat:@"%d",intergerValue];
    txtField.text = intergerString;
    
    0 讨论(0)
  • 2021-01-27 11:25
     [*yourtextfieldname* setText:[NSString stringWithFormat:@"%d",yourintegervalue]];
    
    0 讨论(0)
提交回复
热议问题