开发者

UITabBarController Like Apple's Remote App

Does anyone have an idea how Apple implemented the UITabBarController in the iOS Remote App (for controlling iTunes)?

Specifically, how the Remote will show a blacked out Tab Bar until the user selects an iTunes library (in a modal view), after which the tabs show "Songs," "Artists," etc.

Where would they have placed the logic to ch开发者_如何转开发eck that an iTunes library is selected and how do they blackout the tabs until it is?

Thanks


You basically can set the UITabBarItem's enabled property to false.

Like:

[tabBarItem setEnabled: NO]; // to disable
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜