私は迅速かつiOS開発で全く新しいです。 私は私のクラスは迅速に配列を初期化する方法
var i = 0
var ArrayTitle = [NSString]()
を開始し、その後、私はこの
let ArrayTitl[i] = "text"
のような機能の一つで、それを初期化する必要があるとするとき、私はこのような配列を定義し、この配列
を初期化したいです私もこのようにチェックしましたが、エラーは同じです
let ArrayTitl[0] = "text"
このエラーがあります。 Cannot assign to immutable expression of type '[Int]'
ありがとうございました。ありがとう
、[スウィフトツアー]をお読みください(https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language /GuidedTour.html#//apple_ref/doc/uid/TP40014097-CH2-ID1) – vadian
スイフトへようこそ!まず[言語ガイド](https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html)を読んでください。このような基本について説明します。 –
https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/CollectionTypes.html#//apple_ref/doc/uid/TP40014097-CH8-ID109 –