Comments (4)
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.
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.
Hi, @shaikshabana
I'll check later.
from pagingkit.
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)
- How to insert image inside menu items so that every menu item will have image and text. HOT 1
- contentViewController won't scroll to specific page programmatically HOT 1
- Update Cocoapods with 1.11.2? HOT 4
- Support for iOS 12.0 HOT 2
- v1.12.0: Appearing vc's viewWillAppear is called after scrolling has ended HOT 1
- deleting a row from a tableView HOT 1
- Swift Package Manager HOT 2
- menuViewController.cellAlignment = .center HOT 2
- UITableViewAlertForLayoutOutsideViewHierarchy warning HOT 1
- Is it possible to incorporate into Table View Cell? HOT 1
- Carthage update command fails in Xcode12.1 HOT 1
- How can I set default page index When init?
- Underline and Title are not vertically aligned HOT 6
- Switch page programmatically HOT 1
- Without Storyboard HOT 1
- Can I preload all contentViewControllers? HOT 1
- How to customise PagingMenuViewController overlay title HOT 1
- How to install version 1.18.2? HOT 1
- Add Header content view
- How to create a dynamically adjustable PagingContentViewController's height?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pagingkit.