ios - Have 2 container views. Need to change one to a different view controller -
so have main view controller... , 2 view containers. vcon1 , vcon2 have them talking each other via delegates i'm not sure how change view controller displayed...so tap on button in vcon1 change vcon2 have new view controller...
i have navagation controller in vcon2 i'm not sure want "stack" of view controllers in there...just want swap out 1 another.
any suggestions appreciated..
if both of them have been added subviews on parentcontroller's view, it's matter of calling bringsubviewtofront
.
else can remove 1 of view controllers, , proceed add other one. can read more view controller containment @ objc.io
Comments
Post a Comment