beginBackgroundTaskWithExpirationHandler

后端 未结 3 1028
青春惊慌失措
青春惊慌失措 2020-12-15 08:00

I am making an application where audio will play in the background. In the following code, bgTask is undeclared. What kind of object should bgTask be?

- (voi         


        
3条回答
  •  情深已故
    2020-12-15 08:39

    You need to declare bgTask before you assign:

    UIBackgroundTaskIdentifier bgTask = 0;
    

提交回复
热议问题