uiscrollview

Crashed when scroll UIScrollView

一个人想着一个人 提交于 2020-01-16 05:12:09
问题 When i scroll UIScrollView with iOS 5.1. It's works fine but when scroll with iOS 6.0 the app has crashed. But i do not error line code. this is exception fired: 2012-09-25 11:47:36.255 Attack[4515:c07] Stack Trace: ( 0 CoreFoundation 0x0061802e __exceptionPreprocess + 206 1 libobjc.A.dylib 0x02c8de7e objc_exception_throw + 44 2 CoreFoundation 0x00617deb +[NSException raise:format:] + 139 3 QuartzCore 0x00a31a75 _ZN2CA5Layer10set_boundsERKNS_4RectEb + 213 4 QuartzCore 0x00a31d1e -[CALayer

Approximate rect after applying CATransform3D?

一曲冷凌霜 提交于 2020-01-16 04:10:07
问题 I applied CATransform3D to a view. How can I find its approximate new frame after it? I mean I applied a complex transform: rotation, translation, scale and perspective. And I need to find something like approximate minimal rect. I need it because this view is added to UIScrollView (to know the contentSize I need and of course to implement "scrollToItem:") 回答1: If you want to get the CGRect that completely contains this transformed view, you can use convertRect:toView: . For example: CGRect

How can I pin a UIToolbar to the bottom of the screen in a UIScrollView

和自甴很熟 提交于 2020-01-16 03:23:06
问题 I have a UIScrollView that contains a UIToolbar, but when I scroll, the toolbar scrolls as well, separating from the bottom of the screen. Is there a way to make the toolbar stick to the bottom of the screen as the scroll happens? I tried to create a view that contained both the ScrollView and the Toolbar, but when the program runs, the ScrollView is all that I can see. This problem could be due to the ScrollView being drawn on top of the toolbar, but I'm not sure. Any help in either of these

With multiple UITableViews in a single UIScrollview, how to only load cell data for visible cells

自闭症网瘾萝莉.ら 提交于 2020-01-15 10:52:46
问题 I have 3 uitableviews in a single uiscrollview. Each uitableview is full length and not scrollable so that the outer uiscrollview scrolls them together. This works fine except the uitableviews believe all cells are visible so that all are created up front. Even this is acceptable except each call has an image view (a thumbnail) that is loaded asynchronously from a url. I am trying to figure out how to limit the image loading to only visible cells but still allow the user to scroll the outer

How to keep always first cell of tableview on top of its tableview during scroll tableview

做~自己de王妃 提交于 2020-01-15 09:01:49
问题 I want to keep my first cell always on top of my tableview when scroll. Any help is appreciable.Thanks in advance... 回答1: Here is how you create your Header view for your UITableView - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger) section { UIView *sectionHeaderView = [[UIView alloc] initWithFrame: CGRectMake(0, 0,tableView.frame.size.width, 40.0)]; // Customize it as per your design return sectionHeaderView; } Now return the height of the - (CGFloat

how to set horizontal scrolling in UITableView by using interface builder?

我与影子孤独终老i 提交于 2020-01-15 01:23:57
问题 I have UITableView in my app with 2 columns.I can read column 1 and half of column 2.My questions are- can we add horizontal scroll by use of interface builder in uitableview so i can read column 2 for all cells in table? should we have to add some code for that too or its only possible with interface builder? 回答1: First, the row in the UITableView doesn't scrolls itself inside the UITableView . My solution (I know someone will come out with something better) Is to use an UIScrollView and

Prevent subview from scrolling in a UIScrollView

戏子无情 提交于 2020-01-14 12:40:14
问题 I have a UIScrollView subclass with a certain subview I'd like to prevent from scrolling (while all the other subviews scroll as normal). The closest example to this I can think of is UITableView 's "index strip" on the right side (look in the Contacts app to see an example). I am guessing this is a subview of the table (scrollview) but it does not move as the user scrolls. I can't seem to make my subview stay put! How can I accomplish this? 回答1: The trick is to adjust the frame of the "non

Remove unwanted ios7 padding

孤街浪徒 提交于 2020-01-14 10:47:28
问题 iOS7 adds padding (64px) for the status bar. Therefore when using a Scrollview there is a big camp between the scrollview and the navigation bar. I tried: self.automaticallyAdjustsScrollViewInsets = NO; Which does remove the unwanted padding - however the scrollview no longer scrolls. Is there another way? * update * * I discovered a quick fix. I was lining up the scrollview and y origin= 64px in the storyboard instead of 0. I put my scroll view to 0px (the navigation bar then covered 64px of

Animating a UIView frame, subview UIScrollView doesn't always animate

与世无争的帅哥 提交于 2020-01-14 08:45:26
问题 In this example. I'm animating the PhotoViewerViewController's frame when I animate out the tabBarController (for fullscreen effect). The PhotoViewer uses a uiscrollview to generate the same sort of effect Apple's photos app does. For whatever reason sometimes it animates along with my PhotoViewer frame, and sometimes it doesn't. You can see in the first example it jumps when increasing the frame size, but animates nicely when decreasing the frame size (and restoring the tab bar). However in

Disable scrolling via IBAction contained in subview

我只是一个虾纸丫 提交于 2020-01-14 06:27:07
问题 My iPad app is currently built as such: xml data is pulled from my website and parsed in a View Controller "FishIDView". This view controller has a UIScrollView "scrollView" that has a subview "XMLView" which is a UIView. scrollView is setup so that it scrolls and pages through the XMLViews based on the number of items contained in the XML. For example 12 items = 12 pages, or instances of XMLView. These pages contain photos of individual fish. Each of these pages contain a button that creates