Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Scroll Views

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa
Mac Cocoa  
Author Message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Tue Apr 14, 2009 1:14 am    Post subject: Scroll Views Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Jun 04, 2009 12:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Tue Mar 30, 2010 9:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Sun Jul 31, 2011 7:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Aug 04, 2011 7:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Fri Aug 05, 2011 11:31 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Wed May 23, 2012 11:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Wed Jun 05, 2013 5:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group