简体   繁体   中英

How to change search bar text color in swift tvOS

I am facing the strange problem with Xcode 8.0. When i deploy the same code in Xcode 7.3 the search bar text color by default white, and deploy with Xcode 8.0 the search bar text color by default black. My requirement is that i should want to change the search bar text color.

In Xcode 8 and tvOS 10,  has introduced light and dark interface styles. So, if you're using built in components, these components will adapt to user's interface style preference. However, you can opt not to adapt to this change by adding "User Interface Style" (either "Dark" or "Light") in Project > Targets > Info

I hope this helps.

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