Giter Site home page Giter Site logo

Comments (4)

kazuhiro4949 avatar kazuhiro4949 commented on May 31, 2024

Hi @shaikshabana :)

You mean you are using UISlider in your contents?
I recommend that you set false to "delaysContentTouches" in UIScrollView.

https://developer.apple.com/documentation/uikit/uiscrollview/1619398-delayscontenttouches

    override func viewDidLoad() {
        super.viewDidLoad()
        // contentViewController is a PagingContentViewController's object.
        contentViewController.scrollView.delaysContentTouches = false
    }

PagingContentViewController uses UIScrollView object to scroll the contents.
When "delaysContentToucnes" is false, controls in your contents take priority of scrolling.

If you have any trouble, feel free to ask.

from pagingkit.

shaikshabana avatar shaikshabana commented on May 31, 2024

Hi ,

Thank you for the inputs it helped me,

while using this framework i have got a bug

Let's take SimpleViewController , where we are having datasource and ContentTableViewController,

When i keep a break point, ContentTableViewController is getting called twice and one the tab of last element of menu,viewDidLoad is not getting called.

I have some data to be loaded in last menu item,with the above bug it couldn't achieve that.

Can you help me how to resolve this bug: Where for the first element viewDidLoad getting called twice and for last element viewDidLoad is not getting called.

from pagingkit.

kazuhiro4949 avatar kazuhiro4949 commented on May 31, 2024

Hi, @shaikshabana

I'll check later.

from pagingkit.

kazuhiro4949 avatar kazuhiro4949 commented on May 31, 2024

Hi, @shaikshabana

SimpleViewController in the sample directory doesn't call viewDidLoad() of ContentTableViewController twice.
Could you make a property to set index on ContentTableViewController and print it in viewDidLoad().
( or debug like this: https://www.bignerdranch.com/blog/xcode-breakpoint-wizardry/ )
You can see when each view controller is loaded.

Because PagingContentViewController has an own lifecycle, it loads only two or three view controller at once. It doesn't load the next content until scrolling.

If you make SimpleViewController by yourself, could you show me the code? (on this issue or e-mail)

Thanks.

from pagingkit.

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.