ScrollView page slide by button pressed smartface - smartface.io

I have tried to scroll page images by pressing button on scrollView object by using SMF.UI.ScrollView.scrollX="100%" horizontally but I did not get any response.
Is there any way to scroll pages rather than swipe by hand?

Try this :
SMF.UI.ScrollView.scrollX = 100;

Related

UIButton title disappear when scrolling UICollectionView

I use this to make the size of the button dynamically, everything is ok, but when I scroll, sometimes the title of many buttons disappear, when I scroll again the title appears. Any help please.
This's the image when the text disappears.
This when the text appear again.
Try to add a layer to your button:
yourButton.layer.insertSublayer(shapeLayer, below: yourButton.titleLabel?.layer)
shapeLayer is the shape's button.
Check this response if it's useful for your problem

Push Pop Press style Scrolling

I am working on a app that requires scrolling implemented in Our Choice iPad app from Push Pop Press.
Has anyone implemented the nested scrolling like that?
Updated:
There are two scroll views, one on top with paging and another at the bottom. The top one specifies the Chapters and bottom one corresponds to the pages in the chapter.
So when you swipe to next page of top scroller the bottom one moves accordingly to show it pages. And you can scroll bottom scrollview to view the pages on it. Also when you are at the last few pages of the bottom scroll view and try to scroll then it changes the page at the top scroll view and update the bottom scroll view as well.
Here is the demo video of the app
http://vimeo.com/22872218

Action sheet in an UIScrollview

I have a full screen UIScrollView to display my image. And the scroll view recognize long press gesture. After long pressing on the scrollview, an action sheet shows up. If i add the action sheet to the window, it will not rotate while I am rotating the screen. If i add it to the scroll view, it rotates but not that good when the scroll view has been zoomed or scrolled. Is it possible to rotate the action sheet well regardless of the scrolling and zooming of the scroll view?
ps. the scroll view is directly add to the window by "self.view = myScrollView;"
Adding the scrollView to the rootviewcontroller or the parent view on which scrollview resides would be better and solve you problem.

How to develop the scrolling functionality using buttons

i am developing one application.In that i am using UIScroll view.That will be scrolled vertically when i perform the touch operations on that scroll view.But i need to perform that top scroll and bottom scroll operations using top and bottom buttons.So please tell me how to perform this scrolling operation using that buttons.
As the others have said, this is not really recommended. However, it is possible...
For the "Top" button, use this code:
[scrollView scrollRectToVisible:CGRectMake(0, 0, 320, 20) animated:YES];
Use a similar approach for the "Bottom" button, taking into account the height of your scroll view.
Rather than putting Buttons and adding scrolling functionality on those button, Just flash right / left indicator images using animation to user,so that user can come to know there is more content than current page.

UIWebView Zoom Issue

How can we identify that a user has zoomed the webView so as to resize the other components present. My webView starts from the middle of the screen and when a user zooms the webView it starts to scroll horizontally and vertically but it happens within the webView.The scrolling happens internally. I want to lock the webView from scrolling internally so that when a user scrolls vertically, the labels,textfields etc. on top of the webView also scroll up and not the webView alone. What I want to achieve is pretty similar to iPhone Native Email Client. For accomplishing this, I would like to put this webView on top of a scrollView and when a user zooms it, I would like to reset the content size of my scrollView so that whatever is added to the scrollView like labels and textfields above the webView also scroll when I scroll the webView.
Any ideas?
You could do:
Disallow user to pinch zoom the webview
Detect double tap on your scrollview and toggle webview's scalesPageToFit property AND set userInteractionDisabled on webview
Now you can scroll only scrollview which has all the controls..
You can find help from this
Disabling default zoom effect
and
scalesPageToFit property