开发者

UITabBarController Like Apple's Remote App

开发者 https://www.devze.com 2023-02-08 15:24 出处:网络
Does anyone have an idea how Apple implemented the UITabBarController in the iOS Remote App (for controlling iTunes)?

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

精彩评论

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