Giter VIP home page Giter VIP logo

Comments (4)

 avatar commented on May 25, 2024 1

finally !!
Thank you very much it works !!

from instagram_stories.

ranmyfriend avatar ranmyfriend commented on May 25, 2024

Hi @TheSlider32

Thanks for creating an issue :)

Actually, we have created IGHomeController for this root setup. And this controller has collection view only, What am saying here is you can 1)reuse this view controller for yourself, or create one container view add to try to 2)add this IGHomeController as child-view controller to your own VC.
If you are still now able to achieve it, and which way you are following it. please feel free to reply back to this comment step by step. We will help you to fix it.

from instagram_stories.

 avatar commented on May 25, 2024

When I reuse IGHomeController inside container view the clear cache button doesn't appear. But when I started your project alone it does shows the clear cache button.
How can I activate the clear cache button inside the container view?

Best Regards,
Ido.

from instagram_stories.

ranmyfriend avatar ranmyfriend commented on May 25, 2024

Hi @TheSlider32
We have added clear cache button in the NavigationItem of IGHomeController.

check the following code

override var navigationItem: UINavigationItem {
        let navigationItem = UINavigationItem()
        navigationItem.titleView = UIImageView(image: UIImage(named: "icInstaLogo"))
        if isClearCacheEnabled {
            navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Clear Cache", style: .done, target: self, action: #selector(clearImageCache))
            navigationItem.rightBarButtonItem?.tintColor = UIColor(red: 203.0/255, green: 69.0/255, blue: 168.0/255, alpha: 1.0)
        }
        navigationItem.rightBarButtonItem?.tintColor = UIColor(red: 203.0/255, green: 69.0/255, blue: 168.0/255, alpha: 1.0)
        return navigationItem
    }

Try:

Create one subview in your container view and try to add the custom button and give the functionality.
and hook up the button action to your parent func clearImageCache or move this into your child itself. however you want do your customisation.

from instagram_stories.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.