Use of undeclared identifier 'kUTTypeMovie'

后端 未结 6 1627
傲寒
傲寒 2020-12-13 16:32

I am getting the error message - Use of undeclared identifier \'kUTTypeMovie\'

in the below code -

-(IBAction)selectVideo:(id)sende         


        
6条回答
  •  长情又很酷
    2020-12-13 17:09

    You have to add the framework MobileCoreServices to the project, and then import it:

    Objective C:

    #import 
    

    That will make the problem go away.

    Swift 4:

    import MobileCoreServices
    

提交回复
热议问题