How to make each UITableViewCell snap to top on scrolling of UITableview - ios

I would like to achieve the following functionality. I have an UITableView which consists of UitableViewCells with images of various heights. When i slide up with my finger i need to stick the next UITableViewCell that comes up from the bottom to the top of the UITableView. If i scroll again i need the next UITableViewCell to stop to the top of UITableView and so on. If i slide down the previous UITableViewCell should stick to top and so on. How can i achieve this functionality? Any example or help appreciated.

You can achieve this using paging in UICollectionView

Related

TableView with CollectionView Cells and Top Cell Sticking to the Top

I am intersted in a layout very similar to the App Store app, the "Featured" tab. I think I can achieve this by having a UITableView whose cells are horizontal CollectionViews. So that part is not really my question. The part that I have a question is that the top row of this UITableView scrolls out of the view if you pan (drag) up on the screen but it stick to the top when you pan down. I would like to know how I can achieve that stickiness in one direction.

Collection View Dragging Cells when scrolling

I have one UICollectionView with many sections and cells. I have used custom UICollectionView layout to achieve this design. It has scroll on both horizontal and vertical, with some static cells. Check the video for more details. All the data is setting proper.
Video Link.
Issue is with dragging. I want to drag the cells in the vertical direction and if its within the visible cells there is no problem. But when the cell is drag to scroll the UICollectionView and to bottom there is layout issues with top sticky sections.
Blue remains static when scrolling from left to right and red remains static when scrolling to bottom.
I have implemented drag using longpress gesture. And used CADisplayLink to scroll the UICollectionView while dragging. It would be better if any suggestions on how to scroll the UICollectionView while dragging the cell and how to keep the sticky cells without and layout issues.

Can we scribble on UITableviewCell with out interfering the tableview vertical scroll?

I just want to enable free handwriting on a tableview cell with out actually interfering the table view scroll gestures.

Mixing UIScrollViews and UITableViews

If you look at the Featured tab of the Apple App Store app on an iPhone 6, there is a unique UI layout that I can't figure out how to replicate.
At the very top there is a navigationBar. Below this there is a UIScrollView that animates through a number of featured items. Below this is what appears to be a UITableView with a number of custom programmed cells.
My first guess was that the UIScrollView at the top was added to a custom cell at the top of a UITableView. If you swipe up the UIScrollView moves with the objects below like it is a cell. You can see that the vertical scroll indicator starts at the top of the UIScrollView.
The part that is unique is that if you swipe down, the objects below the UIScrollView move down like a UITableView and the UIScrollView stays in place. This means that the UIScrollView is not a custom cell at the top of a UITableView.
I tried making this work a number of different ways but I can replicate this. Does anyone know how this can be done?
You can use a tableview header,the header is a scrollview
If you scroll tableview up,just use tableview default behavior,the header will scroll up.
If you scroll down,use UIScrollViewDelegate to calculate the tableview header new frame,and adjust it.So it remain at top
Not sure if I got you correctly, you may use UICollectionView as vertical scroll. Then, you create a custom UICollectionViewCell, each with horizontal scroll.
I haven't tried it though but done something similar to this. Hope you find a way!

iOS custom and scrollable UITableView header and UITableViewCell

I want to know how to make a horizontal scrollable UITableView header and UITableViewCell like the app "JP Morgan Fund Watch."
The right part of the UITableView header and UITableViewCell can be scrolled. Any idea how to make it?
You can achieve that effect with using UIScrollView as tableViewHeader and content area of custom UITableViewCell subclass but thinking it is trivial to implement would be naive.
Check the following link for details.
http://theexciter.com/articles/touches-and-uiscrollview-inside-a-uitableview.html

Resources