將按鈕拖動到我的滾動視圖後,窗口不再滾動!如果我刪除按鈕,現在滾動工作。UIScrollView內的UIButton禁用滾動
之前有人遇到過這個問題嗎?
//ScrollViewController.h
@property (weak, nonatomic) IBOutlet UIScrollView *scroller;
//ScrollViewController.m
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
[self.scroller setScrollEnabled:YES];
[self.scroller setContentSize:CGSizeMake(320, 700)];
}
這個【答】解決了iOS 8下的問題[1] [1]:http://stackoverflow.com/a/25900859/3433059 – Userich