uiscrollview

UIScrollView and UIPageControl within UITableView

别说谁变了你拦得住时间么 提交于 2019-12-19 05:04:38
问题 I've seen lots of sources saying it is possible to include a UIScrollView with UIPageControl inside a UITableViewCell to be able to scroll horizontally (through a list of selectable images), but can't find any raw examples that does what I want. I've gotten my scroll view "working", but I am unsure how to go forward - hopefully someone can send me some guidance. Within my cellForRowAtIndexPath, I create a cell, and add both a scrollView and pageControl as subviews. UITableViewCell *cell =

How to set UIScrollView Height in Swift

試著忘記壹切 提交于 2019-12-19 03:46:26
问题 I'm using swift to build an application. I want to add some content to my view controller using storyboard. I already put everything inside the scrollview and set the specific height, but however when I run the application, the scrollview always set longer than the button in the bottom of the view I want the scroll view stop right after the button Please kindly help me how to solve this problem thank you after scrolling for your information, please ignore the white space between 'critics' and

UIScrollView broken and halts scrolling with OpenGL rendering (related CADisplayLink, NSRunLoop)

早过忘川 提交于 2019-12-19 03:39:17
问题 Solution note, Not a question. UIScrollView suspends OpenGL rendering by preventing firing CADisplayLink tick when CADisplayLink registered with NSDefaultRunLoopMode . But, if you use NSRunLoopCommonModes to solve this, UIScrollView will halt scrolling at burst scrolling. And after once halted, it does not scroll again. (broken) And registering CADisplayLink in other thread/runloop (as described in answer of this question: CADisplayLink stops updating when UIScrollView scrolled) reduces

UITableView scrolling problems when inside a UIScrollView

瘦欲@ 提交于 2019-12-19 02:05:31
问题 I have a UIScrollView (with paging) to which I add three UIViews. Each of these UIViews has a UITableView inside. So, the user should be able to scroll horizontally to the page he wants and then scroll vertically in the corresponding table. However, some of the tables don't receive the scrolling gestures. Usually the first one does behave good, but the other ones do not. I can't select cells nor scroll the table up or down. I used the default settings for the UIScrollView, except for these

UITableView scrolling problems when inside a UIScrollView

南笙酒味 提交于 2019-12-19 02:04:07
问题 I have a UIScrollView (with paging) to which I add three UIViews. Each of these UIViews has a UITableView inside. So, the user should be able to scroll horizontally to the page he wants and then scroll vertically in the corresponding table. However, some of the tables don't receive the scrolling gestures. Usually the first one does behave good, but the other ones do not. I can't select cells nor scroll the table up or down. I used the default settings for the UIScrollView, except for these

Best way to refresh/reload UIScrollView

本小妞迷上赌 提交于 2019-12-18 19:06:19
问题 I have a method that adds some subviews (images/buttons) to my ScrollView. The thing is that from outside of the ScrollView the user can tap a button that will change the content of the ScrollView. Is there any decent way to "reset" the ScrollView better than: for (UIView * view in myScrollView.subViews) { [view removeFromSuperview]; } Note that this solution removes the bar to indicate the position on the ScrollView 回答1: Calling setNeedsDisplay is just going to redraw your scroll view, not

Infinite UIScrollView in both direction

和自甴很熟 提交于 2019-12-18 18:28:30
问题 I would like to create an infinite scrollView (like a slot machine), but without paging. When the user scrolls down, it's easy i just have to increase the contentSize and the scrollView scroll endlessly : - (void)scrollViewDidScroll:(UIScrollView *)theScrollView { theScrollView.contentSize = CGSizeMake(45, theScrollView.contentSize.height+45); } But how can i create the same effect when the user scrolls upward ? I tried to play with the contentInset but then the contentOfsset doesn't get

How to let TextView be able to scroll horizontally

那年仲夏 提交于 2019-12-18 15:57:14
问题 I know the TextView is embedded in a ScrollView . And if there is a fairly long String (Which contains no "\n" ) The TextView will automatically do the line-wrap, according to the width of the TextView . If TextView 's height is short, then we are able to scroll it vertically. How do you disable the auto line-wrap? Such that, if there are no "\n" encounters, it does not line wrap. Rather, it lets the user scroll horizontally to view the text. How can I implement this? 回答1: I figure out how to

Unwanted scrolling when animating zoomScale in UIScrollView

此生再无相见时 提交于 2019-12-18 15:55:25
问题 Executive Summary: At times UIScrollView makes an unwanted change to the value of contentOffset , thus causing the app to display the wrong location in the document being viewed. The unwanted change happens in conjunction to an animated change to the scroll view's zoomScale . The Details: I'm having trouble when zooming out with CATiledLayer in a UIScrollView . The CATiledLayer holds a pdf, and when contentOffset is within a certain range, when I zoom out, the contentOffset is changed (that's

UIScrollView not scrolling after Unchecking “Adjust scroll view insets” xcode 6

戏子无情 提交于 2019-12-18 15:53:22
问题 In my app, I tried to use scroll view. But I encountered an issue where the scroll view added space at the top and bottom, as mentioned in the following question. ScrollView adds space at the top of subview xcode 6 Swift I was asked to uncheck "Adjust scroll view insets" of the containing view controller. Doing that solved my purpose. But the scroll view isn't scrolling anymore. I'm not able to scroll to the views which are appearing at the bottom. May I know what I need to do, to make it