Hello, I am using MMDrawerController
for right side menu. I have 2 ViewController
First is HomeVC
with Product Listing data in UICollectionView
and there's 1 filter button.
When i press that filter button I push to filter screen RightViewVC
. Now what I want is, I want to pass that selected filter values to HomeVC
. How can I do this?
You can do this by multiple way
1. By using Block Method
When you push to
RightViewVC
write below code.Define this in
RightViewVC
controller. I created array you can change it as per your requirement.You need to call like this
2. By using NotificationCenter
Write below in your
HomeVC
From
RightViewVC
you need to call like this.3. You can also use delegate