I have created a custom UITableViewCell which has a UIScrollView and a UIPageControl. I have attached the image below on how it is setup. Once I use this inside a table I see 2 issues. It loads up 10 images, the UIPageControl has 10 dots.
When I tap on one of the pageControl dots, it goes into the UITableView's didSelectCell method
When I try to scroll the UIScrollView sometime it scrolls, but then it crashes with the following back trace :
- thread #1: tid = 0x134dc1, 0x000000010a10b00b libobjc.A.dylib
objc_msgSend + 11, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT) frame #0: 0x000000010a10b00b libobjc.A.dylib
objc_msgSend + 11 frame #1: 0x00000001077b6a9a UIKit-[UIScrollView(UIScrollViewInternal) _scrollViewWillBeginDragging] + 117 frame #2: 0x00000001077a686f UIKit
-[UIScrollView _updatePanGesture] + 238 frame #3: 0x0000000107ac77b6 UIKit_UIGestureRecognizerSendActions + 262 frame #4: 0x0000000107ac6459 UIKit
-[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 532 frame #5: 0x0000000107acb076 UIKit___UIGestureRecognizerUpdate_block_invoke662 + 51 frame #6: 0x0000000107acaf72 UIKit
_UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 254 frame #7: 0x0000000107ac0fed UIKit`_UIGestureRecognizerUpdate + 2796
- thread #1: tid = 0x134dc1, 0x000000010a10b00b libobjc.A.dylib
Any pointers on what I am doing wrong very much appreciated!
it should not go to
didSelectCell
method i think u need to set action forpage control
for examplein
customCell