やあこれは私のコードスウィフトエディタプレースホルダ
public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell{
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: <#T##IndexPath#>) as! CustomBrandCell
let brandImage: UIImage = UIImage(named: self.brands[indexPath.row].name)!
cell.brandImageView.image = brandImage
return cell
}
あなたはSOを探しましたか? – KAR
ここをクリックしてください:http://stackoverflow.com/questions/37352738/swift-editor-placeholder-in-source-fileあなたのケースでは、この行に問題があります。 'let cell = collectionView.dequeueReusableCell(withReuseIdentifier:" Cell "、<#T ## IndexPath#>)は! CustomBrandCell'。あなたのケースでは、 '' indexPath''型のパラメータで置き換えなければならないプレースホルダーである<#T ## IndexPath#>に注目してください。 – pbodsk
エラーは*非常に簡単で明白です2行目のプレースホルダ。私はこの質問を「シンプルな誤植」とすることに投票しました。 – EmilioPelaez