Top "Uicolor" questions

A UIColor object represents color and sometimes opacity (alpha value).

How to compare UIColors?

I'd like to check the color set for a background on a UIImageView. I've tried: if(myimage.backgroundColor == [UIColor greenColor]){ ...} …

ios objective-c cocoa-touch uiimageview uicolor
Can I change the color of auto detected links on UITextView?

I had a UITextView that detects phone numbers and links, but this overrides my fontColor and change it to blueColor. …

iphone uitextview iphone-sdk-3.0 uicolor
How do I get red green blue (RGB) and alpha back from a UIColor object?

I am getting a UIColor returned from this method: - (UIColor *)getUserSelectedColor { return [UIColor colorWithRed:redSlider.value green:greenSlider.value …

objective-c iphone cocoa-touch rgb uicolor
How to make a random color with Swift

How I can make a random color function using Swift? import UIKit class ViewController: UIViewController { var randomNumber = arc4random_uniform(20) …

swift random colors uicolor func
How do I define constant values of UIColor?

I want to do something like this, but I cannot get a cooperative syntax. static const UIColor *colorNavbar = [UIColor colorWithRed: 197.0/255.0 …

objective-c cocoa-touch constants uicolor
Change color on checkmark in UITableView

Could someone be so kind to show me how to change the color on the checkmark in UITableView? I have …

objective-c uitableview uicolor
How can I change image tintColor

I'm receiving image from a server, then based on a color chosen by the user, the image color will be …

ios objective-c uiimage uicolor tintcolor
How to convert UIColor to HEX and display in NSLog

I have checked several links on how to convert UIColor codes to HEX however I am not sure on how …

ios objective-c swift iphone uicolor
how can i obtain a cgcolor from RGB values?

I'm trying to create a custom RGB CGColor using swift to use as a border color for a UIButton. I've …

ios swift rgb uicolor cgcolor
Change global tint color - iOS7/iOS8

How can we change the global tint color on iOS7/iOS8 by code? I want to change multiple objects that …

ios7 uicolor tintcolor