Convert NSArray to NSString in Objective-C

后端 未结 9 1283
难免孤独
难免孤独 2020-11-28 01:13

I am wondering how to convert an NSArray [@\"Apple\", @\"Pear \", 323, @\"Orange\"] to a string in Objective-C.

9条回答
  •  渐次进展
    2020-11-28 01:22

    The way I know is easy.

    var NSArray_variable = NSArray_Object[n]
    var stringVarible = NSArray_variable as String
    

    n is the inner position in the array This in SWIFT Language. It might work in Objective C

提交回复
热议问题