When I develop the iOS8 Today Extension, I set the UITableViewController as the main view controller. And I met this problem:
When I start UITableViewCell using initWithStyle: UITableViewCellStyleDefault in cellForRowAtIndexPath the entire area of ββone cell can call didSelectRowAtIndexPath as usual. However, when UITableViewCellStyle sets UITableViewCellStyleValue1, UITableViewCellStyleValue2 or UITableViewCellStyleSubtitle, I can only run didSelectRowAtIndexPath by clicking on the DetailsTextLabel or image area. Press another space area will not respond.
I tried to set the tableview delegate for myself, set detailTextLabel and imageView setUserInteractionEnabled: false to cellForRowAtIndexPath, and all this does not work. Does anyone know about this?
PS I do not use a storyboard or xib file, just code.
I found the same problem on Android: I would like to click anywhere (empty area) as a list
ios select uitableview
Coderain
source share