Pregunta

I am making an iOS application with opencv, so I am writing a lot of code in .mm files. In .mm file of view controller, I am not able to write NSAlert *alert because it gives an error "NSAlert type not found". All other NSObjects are working fine except for NSAlert. What is a possible reason for this? and how to make it work?

¿Fue útil?

Solución

As Volker says, if you're developing for iOS, you want UIAlertView, not NSAlert. NSAlert is a Mac OS class.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top