nickkjordan / wruw-iphone-app

iPhone app for WRUW 91.1 Cleveland, OH http://www.wruw.org/
1 stars 2 forks source link

Favorites Tab Segmented Control to Switch b/w Shows and Songs #19

Closed nickkjordan closed 10 years ago

nickkjordan commented 10 years ago

Add a UISegmentedControl to the top of the Favorites Tab that can switch between lists of favorite shows and songs.

nickkjordan commented 10 years ago

Using the technique found here:

http://stackoverflow.com/a/16052018

nickkjordan commented 10 years ago

favShowsVC not actually instantiated as nil. When switchContainerView: is called, then favShowsVC is nil

nickkjordan commented 10 years ago

Current issue: non-active VC is clearing. So, if favSongsVC is the present VC in the container view, and segmented control 1 is pressed, then the favSongsVC will be nil. This is not causing an error because for some reason currentVC is not identical to the present VC.

nickkjordan commented 10 years ago

Fix above: favSongs and favShows need to have strong declarations in the header files.

currentVC is still different every call to switchContainerView: and does not equal either container VC

nickkjordan commented 10 years ago

Possibly didn't run after changing currentVC to have a strong declaration, but last commit correctly switches between the container view VCs.