Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView in a Today Extension not receiving row taps

I have a iOS 8 app with a Today Extension. The extension has a UITableView in it and it is rendering correctly. However, didSelectRowAtIndexPath doesn't seem to get called reliably. I am guessing this is because Notification Center is a UIScrollView and embedding a UITableView in those causes some issues, but I am not sure.

Does anyone know what might be causing this issue?

like image 981
lehn0058 Avatar asked Oct 10 '14 23:10

lehn0058


2 Answers

Workaround: set the opacity to 0.01 like this:

self.view.backgroundColor = [UIColor colorWithWhite:1 alpha:0.01];
like image 193
Rahul Thiru Avatar answered Oct 03 '22 02:10

Rahul Thiru


This worked for me in Swift 2.1 / iOS 9.1:

self.view.backgroundColor = UIColor(red: (255.0/255.0), green: (255.0/255.0), blue: (255.0/255.0), alpha: 0.01)
like image 37
user3452015 Avatar answered Oct 03 '22 04:10

user3452015