StackOverFlow , Twitter, ... IOS App... how they handle Scrolling in their Pages - uitableview

How They Handle ScrollView and SubTable?
when parent scrollview is at top, scrolling up, move it to bottom and then child tableview scroll...
StackOverFlow IOS APP :
https://aorb.ir/content/sackoverflow.mp4
Twitter IOS APP :
https://aorb.ir/content/twitter.mp4

Related

WKInterfaceTable add scroll bar "flash' and remove scroll bar from non-scrolling view

I have two questions regarding WatchKit:
1) I have an app that uses [WKInterfaceTable]. One of the interfaces is scrollable.As such, when the user scrolls, the scroll bar appears in the top right corner of the watch interface.
How do I get the scroll bar to temporary flash the scroll bar when the user opens the app. A good example of this functionality is the Calendar app in Apple watch.
I've combed the net and WatchKit catalog (https://developer.apple.com/library/ios/samplecode/WKInterfaceCatalog/Introduction/Intro.html) but was not able to find a solution.
2) I have another interface that only shows one row on the watch and therefore does not need to scroll. How do I remove the scroll view in this case?
I am using WatchKit 2.0 and writing the app in Objective-C.
I wonder if you could get the desired effect by scrolling to the top programmatically after the view has loaded?
table.scrollToRowAtIndex(0)
If that didn't work, then perhaps (again after load) scroll to the second row and then back to the first to cause the bar to display?
table.scrollToRowAtIndex(1)
table.scrollToRowAtIndex(0)
I haven't tried this, but I have programmatically traveled to rows in a WKInterface table and I believe you do get the scroll bar.

iOS8 When using VoiceOver content of the collection view is scrolled to beginning

I have simple collection view created programmatically with build in horizontal layout and 50 items. When I enable VoiceOver to speak content of each cell, scroll position is changed to beginning on first item.
I would like to preserve scroll position. Am I missing something when VoiceOver is enabled?
With voice over disabled it works without issues.
Good to mention it works without issues on iOS7. I am using xcode 6.

How to programmatically scroll UIPageViewController?

I have implemented to a page to display multiple Viewcontroller via UIPageViewController. User can scroll horizontally to view a different ViewController (And I have dynamic number of VCs, depending on the data loaded from server) .
The problem is most of the user does not know that they can scroll horizontally . I would like to show to user when they come to my app first time that the page is horizontally scrollable. Just like the screenshot below
The easiest way is to show them the half-page scroll first so they realize that this page is scrollable. But I have searched through SO and found none of the solution. If I add gesture programmatically, the app might got rejected from appstore. So are there any easy way to do this?

Implement IOS7 App Switcher Animation to change views

I'm trying to implement the effect bellow to switch my views:
(Unfortunately I don't have enough reputation to post images, but is the same animation of this post)
I have a UIPageViewController with some views. Suppose this UIPageViewController is inside a ViewController with a header. In this header, there is a button when pressed will zoom out and show the views inside the UIPageController with the same look and feel of the app switcher. I don't have to swipe to up to delete these views. I just need the zoom out, scroll left-right and zoom in (at the end) look and feel.
Someone had already implemented this animation?

Unable to close mergDataGridScroller in iOS

This is what I'm trying to do: I've got two mergDataGridScrollers on top of each other. If I turn one of them invisible and scroll the other, I'm scrolling the invisible scroller because 1) it's not scrolling the intended scroller and 2) I can see the scrollbar of the invisible scroller scrolling.
So, I tried dispatching a "closeControl" to the invisible scroller, but that did not get sent because I think the command is private. Any suggestions on how to work with two overlapping iOS scrollers?
I haven't used mergDataGridScrollers but have used scrollers in iOS with groups - and in an app where I wanted an iOS scroller to slide on and off the screen I had to delete it, slide off the group behind the scroller and slide the group on again and recreate the scroller when I wanted it back. Showing and hiding the scroller didn't cut it for me (as you describe on a device if you do a swipe where the scroller was you'll see the scrollbar) - you'll presumably have to delete and create the scrollers anyway on leaving/entering cards on iOS.
The problem is there's a couple of bugs in mergDataGridScroller... I'll try and get a new version up ASAP

Resources