ios - Swift, Pass data from popover controller to previous controller -
i want fill text view in current controller data existing in popover controller out reload data in current controller can ??
you can use custom delegate method fill value.
class popupviewcontroller { weak var delegate: filletextviewdelegate? func calldelegate () { delegate?.filltextview(filleddata) } } protocol filletextviewdelegate : class { func filltextview(filleddata: string) } class currentviewcontroller :filletextviewdelegate { func filltextview(filleddata: string) { textview.text = filleddata } }
Comments
Post a Comment