سؤال

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?

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top