I have a custom UITableViewCell, which is initialized by the following:
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIden
Swift:
Firstly, turn off delays in UITableView
after it is loaded successfully, for example, inside viewDidLoad()
method:
someTableView.delaysContentTouches = false
Then turn off delays in the scroll views contained inside the UITableView
:
for case let scrollView as UIScrollView in someTableView.subviews {
scrollView.delaysContentTouches = false
}
Note for iOS7: You might have to disable the delays in UITableViewCell
. (Check Dima's answer). You might also find some other tips here.