Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top