更新詳細フォームに Eureka フレームワークを使用しています。各行にプレースホルダーを配置することに問題があります。ドキュメントで答えを探してみましたが、うまくいかないようです。私が置くとき
row.placeholder = "Enter text here"
エラーを返します。
タイプ 'floatlabeltextview' の値にはメンバー 'placeholder' がありません
ここに私の完全なコードがあります:
form +++ Section("Personal Details")
<<< FloatLabelTextFieldRow(Tags.ValidationNickname){ row in
row.title = "Nick Name"
row.placeholder = "Enter text here"
}
<<< FloatLabelTextFieldRow(Tags.ValidationTitle){ row in
row.title = "Salutation"
var tempArray:[String] = [String]()
for title in titleArray{
tempArray.append(title["Description"] as! String)
}
row.options = tempArray
}
<<< FloatLabelTextFieldRow(Tags.ValidationFirstName){ row in
row.title = "Given Name"
}
<<< FloatLabelTextFieldRow(Tags.ValidationLastName){row in
row.title = "Family Name"
}
<<< FloatLabelTextFieldRow(Tags.ValidationDateOfBirth){row in
row.title = "Date of Birth"
}
<<< FloatLabelTextFieldRow(Tags.ValidationNationality){row in
row.title = "Nationality"
var tempArray = [String]()
for country in countryArray{
tempArray.append(country["CountryName"] as! String)
}
row.options = tempArray
}
<<< FloatLabelTextFieldRow(Tags.ValidationMobile){row in
row.title = "Mobile"
}
<<< FloatLabelTextFieldRow(Tags.ValidationPassport){row in
row.title = "Passport"
}
+++ Section("Address")
<<< FloatLabelTextFieldRow(Tags.ValidationAddressLine1){row in
row.title = "Street 1"
}
<<< FloatLabelTextFieldRow(Tags.ValidationAddressLine2){row in
row.title = "Street 2"
}
<<< FloatLabelTextFieldRow(Tags.ValidationCity){row in
row.title = "Town/City"
}
<<< FloatLabelTextFieldRow(Tags.ValidationPostcode){row in
row.title = "Postal Code"
}
<<< FloatLabelTextFieldRow(Tags.ValidationCountry){row in
row.title = "Country"
var tempArray = [String]()
for country in countryArray{
tempArray.append(country["CountryName"] as! String)
}
row.options = tempArray
}
<<< FloatLabelTextFieldRow(Tags.ValidationState){row in
row.title = "State/Province"
let tempArray = [String]()
row.options = tempArray
}