Home > Mobile >  Single player or multiple players
Single player or multiple players

Time:09-30

As title, an app is singleton player or a better each interface?

CodePudding user response:

I think the singleton is better

CodePudding user response:

reference 07 response: 1/f, rain
I think singleton better

What's the advantage of clear?
Memory reduction; Seamless jump play, what?

CodePudding user response:

Singleton, put tableview etc. Don't need frequent create delete etc.,

CodePudding user response:

More recommended singleton player

The benefits of singleton player:

1. The system is only one instance, convenient to control the number of instances and saving system resources;
2. Within the app global on playback controls more flexible and convenient;
3. Reasonable singleton class encapsulation, easier to access to the outside world,

CodePudding user response:

reference dirdirdir3 reply: 3/f
singleton, put tableview don't need frequent create delete etc., such as

I said many players actually refers to a VC a player,

CodePudding user response:

reference however 4th floor is response:
more recommended singleton player

The benefits of singleton player:

1. The system is only one instance, convenient to control the number of instances and saving system resources;
2. Within the app global on playback controls more flexible and convenient;
3. Reasonable singleton class encapsulation, easier access to the outside world,

What's good about that player?

CodePudding user response:

refer to the sixth floor of the man with heat stroke the reply:
Quote: reference however 4th floor is response:

More recommended singleton player

The benefits of singleton player:

1. The system is only one instance, convenient to control the number of instances and saving system resources;
2. Within the app global on playback controls more flexible and convenient;
3. Reasonable singleton class encapsulation, easier access to the outside world,

What's good about that player?

Benefits can
You build a foundation of players in each VC add extensions to the accumulation of player different function good,
If you every VC a player then what will you do in every VC series of the same (playing time, schedule, etc.)
  •  Tags:  
  • iOS
  • Related