fphilipe / PHFComposeBarView

Compose bar from iOS 7 Messages.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash while setting the delegate: Acessibility?

acf opened this issue · comments

Hi,

I've just gone live with an app using the excellent PHFComposeBarView. I've seen a few crashes over the last couple of days when setting the delegate. I'm suspecting something to do with Accessibility (due both to the word appearing in the crash report, and the fact that it seems to be consistently affecting 2 users, but no-one else). It's iOS8 only, and affecting both iPhone 5S and 6+.

The crash report is here: http://crashes.to/s/0321516c355 but I've screens hotted the salient piece here:
2014-10-06_1109

I'm not expecting you to fix my bugs :-) But I just wondered if anyone else had seen it and/or figured it out.

Thanks again for a really useful component.

Alan

Confirmed in Xcode. It crashes as above when VoiceOver is on.

I fixed it by removing the Delegate Chain. I set the compose bar's delegate to my controller and the textviews delegate to the compose bar. My controller wasn't interested in textview delegate messages anyway. I still can't figure out what was actually crashing, and why the accessibility call would crash instead of just getting passed through.

Thanks Alan, I had exactly same crash and spent a lot time try to figure out what was the problem. You post saves my life. Cheers

+1 Would love to see this merged into master.

The patch works, confirmed from IPhone 6 with voice over enabled.
stasix@440e210