In my project, I am using UIActionSheet
for displaying for some sorting type. I want to change the color of the text displayed in the action sheet buttons. How can we change the text color?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
@jrc solution works, but titleLabel color changes when you tap the button. Try this to keep the same color at all states.
In iOS 8, none of this works anymore. UIActionSheet text seems to get its color from window.tintColor.
Soulution for Swift 3. Changes all colors.
EDIT
Here is a similar question: How to customize Buttons in UIActionSheet?
Try to use the
appearance
protocol [NOT WORKING]