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

前端 未结 2 1118

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;
    

提交回复
热议问题