uiscrollview

Double UIScrollView synchronization - Different height

社会主义新天地 提交于 2019-12-12 01:42:52
问题 I'm currently developping iPad application with 2 UIScrollView in the same page. On the left side, there is the content and on the right side, there are some bloc, news. These two UIScrollView are different height size. Example : left 1000, right 2000. I would like to synchronize the 2 UIScrollView , I explain me : When the user scrolls on the left UIScrollView to access on the bottom, the right UIScrollView "scrolls" in the same time. If the left UIScrollView is happened to be at the bottom,

How to set Horizontal text field in landscape mode with auto layout?

孤街浪徒 提交于 2019-12-12 01:38:44
问题 In my app i want to set text field width according screen size in landscape mode,using auto layout.it's working portrait perfectly in land scape mode not working. Here is my Screen with auto layout, In landscape mode showing like this, Here is my Constraints Screen this my View Controller 回答1: I suppose you must have some superview under this layout that has explicit width set. How does it look like when you tweak simulated metrics like size and orientation in your storyboard? Alse remember

kivy Scrollview can't Scroll

ⅰ亾dé卋堺 提交于 2019-12-12 01:37:04
问题 FileView extends the kivy ScrollView. In the app I can see three out of the four image, but I am not able to scroll to the fourth image. Therefore the widget is larger than my app window and I thought that I should be able to scroll. But, I cannot scroll. This is my python code: import os import sys #self-programmed modules import modules.pmail as pmail import modules.log as log #kivy modules from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.image import Image

Getting the right coordinates of the visible part of a UIImage inside of UIScrollView

本秂侑毒 提交于 2019-12-12 01:09:25
问题 I have a UIImage which is inside a UIScrollView so I can zoom-in and zoom-out, crop, move around, etc. How do I get the coordinates of the visible part of the UIImage inside the UIScrollView. I want to crop the image in it's native resolution (using GPUIImage) but I need to x, y, width and height for the rectangle. 回答1: I use a scrollview to enable zoom of a UIImage. A cropping button presents an overlaid resizable cropping view. The following is the code I use to ensure the user defined crop

Content of UIscrollview not updating, when changing orientation

穿精又带淫゛_ 提交于 2019-12-12 01:05:41
问题 Here's my problem. Am Using a scrollview whose Frames I am changing when rotating the device. I have 8 AsyncImageView on that scrollview. And the Images on AsyncImageView's are set by calling web services. Project runs fine. Images on the AsyncImageView are loaded properly. But when I rotate the device, AsyncImageViews shows no Images . I tried everything. No success. Then I used a trick. That is setting the scrollview content offset 1,0 when rotating in either direction. And my project works

UIScrollView UIPangestureRecognizer dead zone on top edge of screen

好久不见. 提交于 2019-12-12 00:52:31
问题 as shown in the picture below the UIPanGestureRecognizer will not pan when the drag started inside the "dead zone" on the top of the screen. This is most likely caused by the notification center. The touchesMoved:withEvent: method however does get called, so there should be a way to get pan gestures recognized in this area. Has anyone else came across this issue, are there any workarounds out there yet? Thanks for any help! 回答1: It is possible that on the top edge of the screen you have

Pixelated text in UILabel within UIScrollView, both with transparent background

别等时光非礼了梦想. 提交于 2019-12-12 00:51:15
问题 I have a weird issue: I have a UIScrollView whose background is transparent. Inside of it there are a few UILabels also with a transparent background and with a custom font. When the scrollview is first displayed everything looks sharp and good but as soon as I start panning the scroll view, the text of the labels gets extremely pixelated. This does not happen if i set an opaque background to the labels. Do you have any idea what might be causing this? 回答1: This sounds like you may be adding

Shrinking a UIScrollView to focus on a certain page

妖精的绣舞 提交于 2019-12-12 00:32:35
问题 I have a UIScrollView with horizontal pagination - similar to the weather app. Under certain circumstances, I want to prevent the user from scrolling horizontally. Simply disabling the scrolling is a little jarring - I would prefer to duplicate the experience of scrolling past the last page - a little scrolling is permitted, but since there is no more content, the scrollview bounces back. How might I go about implementing this? Should I be changing the contentSize of the ScrollView? How do I

“setFrame” doesn't work for UIScrollView in iOS

大兔子大兔子 提交于 2019-12-12 00:31:36
问题 I've put a ScrollView in storyboard. Next, in the code I call self.scroll.frame = CGRectMake(100, 0, 800, 900); I suppose the scroll should change the position into (100, 0) But somehow it still remains in the original position where was set in storyboard. What am I missing ? 回答1: Yes it won't work for any view in autolayout system at all if added using storyboard or xib. If you want to set frame initialise in your code. @property (nonatomic,strong) UIScrollView *scrollView; _scrollView = [