ios - Warning: Attempt to present <Assessnow.GetTestViewController> on <UINavigationController> while a presentation is in progress -


i want know behaviour of navigation controller because searched many things , tried didn't stack of navigation controller. little bit confuse in pop , present , push navigation controller.

so doing showing viewcontroller:

self.navigationcontroller?.pushviewcontroller(controller, animated: true) 

and coming view again homeviewcontroller:

 _ = self.navigationcontroller?.popviewcontroller(animated: true) 

i trying open viewcontroller:

let gettestviewcontroller = self.storyboard?.instantiateviewcontroller(withidentifier: "gettestviewcontroller") as! gettestviewcontroller     gettestviewcontroller.modalpresentationstyle = .overcurrentcontext     gettestviewcontroller.modaltransitionstyle = .crossdissolve     self.navigationcontroller?.present(gettestviewcontroller, animated: true, completion: nil).  

but getting warning:

"warning: attempt present <assessnow.gettestviewcontroller> on <uinavigationcontroller> while presentation in progress".  

i saw below links , tried didn't reached.

attempt present uiviewcontroller while presentation in progress!-warning.

ios7 - warning: attempt present uinavigationcontroller on uinavigationcontroller while presentation in progress.

i want know why getting warning , how can resolve it.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -