简体   繁体   中英

(UITabBarController *)self.window.rootViewController;

I've seen this declaration in a tutorial where someone is changing the appearance of the UITabBarController.

UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController;

What does the first part after the equal sign do? To be more specific, the

(UITabBarController *)

By the way, is there some kind of overview of which classes are relevant when changing the UI appearance? I'm having a hard time figuring out when to call what.

Thanks a lot!

这是一种类型转换 :所述(T)value操作者强制从原始类型的显式类型转换value到新的类型T

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM