Scroll view can't perform delegate but table view can - ios

I have a scroll view to show image and set inside tableview cell. Scroll view can’t perform scroll view delegate but table view can perform the scroll view delegate.
So, how can I perform delegate only scroll view?

When you scroll in scroll view the scroll view delegate will be called but the table view will get scrolled. You can not access only scroll view delegates inside table view.

If you add image to the scroll view, it will not scroll because you are actually scrolling the Cells and not the scroll view itself.
That's why, you need to add the image to a cell, not to the scroll view.
So in your table View delegate method where you are constructing your cells you should add the image view.

Related

Transfer event between two scroll

I have table view and scroll view. Table view is on scroll view. Now I want to drag scroll view and if scroll view dragged to some point, scroll view should stop drag and table view start to scroll within single drag (touch) event. I tried it with UIPanGestureRecognizer and also tried with implementation of - (void)scrollViewDidScroll:(UIScrollView *)scrollView.
But not getting success.
This is implementation [Please go through image. table view scrolling and depend on that above view moved to top. now i want table view scroll to stop and move table view and topView to top and when topView invisible tableview should scroll withn that single drag event]
Up Scrolling Table View:
Down Scrolling Table View:

How to bring a Table View Cell's content view above all other Table View subviews?

Scenario -
I have a table view on which I have added custom views by tableView.addSubView(myView).
Now I have a certain cell whose contentView needs to be shown above tableView.
Methods Tried
I tried passing a tag on the cell's contentView and iterating on all table view's subView's. But that didn't help out.
How to move a cell's contentView above any other sub views of table view?

How to fix the position of a tableview cell on the top of the view

I have a table view containing a segmentController as one of its cells. What I want to do is when I scroll up the table view, this segmentController is fixed on the top of the view as the content goes up, rather than disappear.

ios : tableview not appearing in subview of a scrollview

I have a scrollview with multiple views.Enabled horizontal scrolling.Each view contains a tableview.I have page control in scrollview. when i drag horizontally, the views are appearing without tableview except the first view. Please give me suggestions.
Make sure if setContentSize to your scrollview means scrollview content size is the size of your main view.
When you scroll to next view or if you scroll to view displayed for first time, make sure you reload table. You can implement his through delegate and protocols. For example, when you scroll to second view for first time, then controller should call some method on subview to reload its table.

UITableView grouped with transparency above to reveal content behind it?

Is it possible to make a grouped UITableView transparent above and below it's content. I am not looking for a parallax-type solution, but I have a UITableView that I add to my view controller. When pulling down on the table view, I would like to display the view controller view (that the table view us a subview of).
Right now, when I add a UITableView with the same frame as my view controller's view and add it as a subview, when I drag down on the UITableView the header above the first cell is the same colour as my UITableView's background. Instead I would like for it to reveal the content behind it more and more as the user drags down.
Is this possible and how? Thanks.

Resources