Re: UIScrolview in only one direction at time

2011-06-22 Thread talesp
Alright, thank you! I was trying to do this in my class, that is a subclass of UIScrollview. But it was looking strange and not really working. I'll try this. Thank you again. On 22 Jun, 2011,at 12:37 PM, Matt Neuburg wrote: On Mon, 20 Jun 2011 21:29:55 -0300, Tales Pinheiro de Andrade sa

Re: Loop between observers with KVO from UIScrollView

2011-06-21 Thread talesp
Thank you for the answer. It just worked! About the notes: 1.: should I just check if the object is different from self? Or some more "complicated"? And what should I check as keyPath? 2.: if I send a context parameter from observer (the context can be a NSString for example, right?), should

User interface items not get touch events in custom view in iOS app

2011-06-20 Thread talesp
Hi, I have a custom view if a few buttons in it. These buttons are added to the view programatically in initWithFrame method: - (id)initWithFrame:(CGRect)frame {     self = [super initWithFrame:frame];     if (self) {         btnGlass = [UIButton buttonWithType:UIButtonTypeCustom];         btnG