Mac Cocoa |
Author |
Message |
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Tue Apr 14, 2009 1:14 am Post subject: Scroll Views |
|
|
iphonedevsdk.com - Swipe views
"It's not as simple as you might think. It's up to you to load the images, and
set them up horizontally, then place them in a UIscrollView." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Jun 04, 2009 12:34 pm Post subject: |
|
|
MF - Making a UIScrollView in IB
"For whatever reason there's no way to set the contentSize in IB. Set it in
your viewDidLoad method." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Tue Mar 30, 2010 9:37 pm Post subject: |
|
|
so - UISwitch within UIScrollview nearly impossible to use…
"On the other hand, if you don't want to modify your UI, you could always
just do:
myScrollView.delaysContentTouches = NO;
This will cause your switch to "get" the touches immediately, rather than
have them go to the UIScrollView first." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Sun Jul 31, 2011 7:43 pm Post subject: |
|
|
Apple Support Communities - UIScrollView touchesEnded being called
twice?
"NOTE: The view controller ONLY gets the event twice when the user is not
scrolling. If the user just taps, then two events fire on the view controller."
Code: | - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
if (self.lastEvent != event.timestamp) {
self.lastEvent = event.timestamp;
[super touchesEnded:touches withEvent:event];
[self.nextResponder touchesEnded:touches withEvent:event];
}
} |
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Aug 04, 2011 7:25 pm Post subject: |
|
|
When it comes to UIScrollViews, these two books gave me everything I ne-
eded to know. Of all the other books that I have, with only few exceptions,
none comes even close.
. |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri Aug 05, 2011 11:31 am Post subject: |
|
|
so - UIScrollView with centered UIImageView, like Photos app
"Turns out if you pretty much do the exact same logic but in this delegate
function:
-(void)scrollViewDidZoom:(UIScrollView *)pScrollView
it both starts off centered and when you zoom out it stays centered..." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Wed May 23, 2012 11:30 pm Post subject: |
|
|
cocoanetics.com - Hacking UIScrollView Gesture Recognizers
"But the problem with this, as of SDK 3.2., is that if you change the min or
max zoomLevel property the scroll silently adds a UIPinchGestureRecognizer
to itself via the addGestureRecognizer method that now all views have." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Wed Jun 05, 2013 5:39 pm Post subject: |
|
|
raywenderlich.com - How To Use UIScrollView to Scroll and Zoom Content
"In this tutorial you’ll learn all about UIScrollViews, from beginning to advanced. You’ll learn:
• How to use a scroll view to view a very large image.
• How to keep the scroll view’s content centered while zooming.
• How to embed a complex view hierarchy inside a UIScrollView.
• How to use UIScrollView’s paging feature in conjunction with the UIPageControl, to allow scrolling through multiple pages of content.
• How to make a “peeking” scroll view that gives a glimpse of the previous/next page as well as the current page.
• And much more!" |
|
Back to top |
|
|
|