SORU
1 Aralık 2009, Salı


Objective-C NSString için NSArray dönüştürmek

Objective-C Otomasyon Bir örnek, bir dize 2* *bir NSArray dönüştürmek nasıl merak ediyorum:

set the_array to {1,"Two", 3,4,5,6}
set the_array to the_array as string

CEVAP
1 Aralık 2009, Salı


NSString * result = [[array valueForKey:@"description"] componentsJoinedByString:@""];

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • chrmoe

    chrmoe

    7 Kasım 2006
  • Huot Media

    Huot Media

    7 Mayıs 2010
  • lilstevie89

    lilstevie89

    25 Mart 2011