In our current code, the properties of XIB controls are added with weak. However, we encounter some crashes due to accessing wild pointers of controls when a memory warning occurs.
Colleagues from our architecture team said that they had specifically consulted Apple's technical staff before, and the reply was that strong should be used for modification, as it would make the memory more stable. They also mentioned that the statement in the official documentation is incorrect and hasn't been updated.
May I ask whether strong or weak should be used for XIB control properties? What is your latest standard answer?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
在我们App中,打开一个H5页面,使用webplayer播放H5中的视频。
然后再去播放App的播放器,播放视频、或音频文件,
都存在抢不到音频焦点问题,声音响一下就停了,播放器还在运行。
尝试在每次App播放都先调用setCategory、setActive也不生效。
这个问题,在beta1~beta3都存在。
请问,webkit的 player做了什么处理,会一直锁定着音频焦点,App要怎么处理才能把焦点拿过来?
In our App, open an H5 page and use webplayer to play the video in H5.
Then go to the PlayApp player to play the video or audio file.
There is a problem of not being able to grab the audio focus. The sound stops as soon as it sounds, but the player is still running.
Trying to call setCategory and setActive every time in AppPlay does not work either.
This problem exists in beta1~beta3.
I would like to ask, what processing has been done by the webkit player to keep the audio focus locked? How can the app handle it so that it can take the focus?