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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -