On iOS 7, the alert is split into two lines visually:

```
"Appname" Would Like to
Access Your Photos
```

I'm not sure if this would match. I ended up looking for just "Access Your photos." If there was a way to reliably trigger this dialog then we could check for sure.