1
import UIKit
import Eureka
import DigitsKit
//MARK: HiddenRowsExample
class SettingsViewController: FormViewController {

            override func viewDidLoad() {
                super.viewDidLoad()

                let section = Section()
           //line below gives me an error: Use of unresolved Identifier 'ImageRow'     
                    <<< ImageRow() {  
                        $0.title = "Profile Photo"
                        $0.sourceTypes = [.PhotoLibrary, .SavedPhotosAlbum]
                        $0.clearAction = .yes(style: UIAlertActionStyle.destructive)

                        }.cellUpdate({(cell, row) -> () in
                            row.accessoryView?.layer.cornerRadius = 18
                            row.accessoryView?.frame = CGRect(x:0, y:0, width:34, height:34)
                })

                section.append(TextRow() { $0.placeholder = "Username" })
                section.append(PasswordRow() { $0.placeholder = "Password" })
                section.append(EmailRow(){$0.placeholder = "Email"})
                section.append(PhoneRow() {$0.placeholder = "Phone"})
                section.append(
                    ButtonRow() { (row:ButtonRow) ->Void in
                        row.title = "Save"
                        row.onCellSelection(self.save)
                        row.cell.backgroundColor = UIColor(red: 1.0/255, green: 87.0/255, blue: 184.0/255, alpha: 1.0)
                        row.cell.tintColor = UIColor.white
4

2 回答 2

4

ImageRow 已在最新版本中从 Eureka 中删除。

点击链接: https ://github.com/xmartlabs/Eureka/issues/759

于 2017-01-04T23:41:48.610 回答
0

将 ImageRow 添加到您的 podfile pod 'ImageRow', '~> 3.0' 并进行导入import ImageRow

于 2018-01-30T06:35:10.100 回答