我读过所有关于这个话题确切以前的职位,但我当用户在这个iPad应用程序滚动仍然无法检测...的iOS滚动型检测滚动
我的.h:
#import <UIKit/UIKit.h>
@interface MyApp_ViewController : UIViewController <UIScrollViewDelegate>
{
}
@property (weak, nonatomic) IBOutlet UIButton *otherButton;
@property (weak, nonatomic) IBOutlet UIScrollView *otherScrollView;
@property (weak, nonatomic) IBOutlet UITextView *txtViewHTML;
-(void)k_RootViewPrint:(NSString *) data;
-(void)ActionEventForButton: (id) sender;
@end
我的.m:
-(void)scrollViewDidScroll:(UIScrollView *)scrollView
{
NSLog(@"...");
}
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
NSLog(@"2222");
}
- (void) touchesEnded: (NSSet *) touches withEvent: (UIEvent *) event
{
NSLog(@"touches ended BS");
}
但他们都不工作?我确定这很简单,但我已经尽了我所能想到的一切,而且什么都没有。任何正确的方向指导将深受赞赏!
你必须otherScrollView的委托设置为文件所有者 – Hiren 2012-01-16 06:34:30