我想迭代並顯示我的文本視圖集合上的數組。Ios Iterate IBOutletCollection TextView
@property (strong, nonatomic) IBOutletCollection(UITextView) NSArray *myTextViewCollection;
但在UI,只在我的數組的最後一個元素是可用的。
我用迭代:
for (UITextView *textView in myTextViewCollection) {
for (int i = 0; i < feeds.count; i++) {
textView.text = [[feeds objectAtIndex:i] objectForKey:@"title"];
textView.editable = false;
}
}
feeds
是NSMutableArray的contening NSMutableDictionnary對象的列表。
一個想法?
如果是從「我」的變量來了嗎? – PCoder123
我編輯了我的問題以添加變量 – user3433920