0

I have an app with 4 tabs .

In one of it I have a list with songs. When one row is selected another view controller in the same tab is appearing.

This view :this view

I want when i select the last tab to show exactly this view , with the currently song playing.

Any ideea how can i do this , without starting the song from begining ?

Adina Marin
  • 663
  • 1
  • 4
  • 15

1 Answers1

0

use tabbarcontroller's shouldSelect or didSelectmethod similar to this:

When you try to select the same tab again, check if music is playing, if it is playing then don't pop to root view controller

how to use UITabBarController's shouldSelectViewController delegate method

Community
  • 1
  • 1
Jatin
  • 1,668
  • 2
  • 16
  • 23