ios - Pushing event to different Controller in Swift -
i'm using package opens camera , can closed self.dismiss(animated: true, completion: nil)
. i'm uploading captured image , in success-state add dismiss()
, before want call function of controller goes after dismiss.
let mainstoryboard: uistoryboard = uistoryboard(name: "main", bundle: nil) let photocontroller: foobarvc = mainstoryboard.instantiateviewcontroller(withidentifier: "foobarsb") as! foobarvc photocontroller.reloadphotolist()
but doing this, doesn't call reloadphotolist()
correctly. function rebuild imagecollectionview new data fetchd url
Comments
Post a Comment