The parameter aren’t a values of 0 to 255 but a float between 0.0 and 1.0:
[UIColor colorWithRed:0.0f/255.0f green:155.0f/255.0f blue:218.0f/255.0f alpha:1.0f];
More Related Contents:
- How to change the status bar background color and text color on iOS 7?
- How can I create a UIColor from a hex string?
- How to compare UIColors?
- Replace a particular color inside an image with another color
- How to get boolean value from switch state?
- Async image loading from url inside a UITableView cell – image changes to wrong image while scrolling
- When is layoutSubviews called?
- Number of days between two NSDates [duplicate]
- Change User Agent in UIWebView
- iOS – Dismiss keyboard when touching outside of UITextField
- Save string to the NSUserDefaults?
- Getting a list of files in a directory with a glob
- Detect when an iOS app is launched for the first time? [closed]
- How to ignore touch events and pass them to another subview’s UIControl objects?
- Finding smallest and biggest value in NSArray of NSNumbers
- Testing CoreLocation on iPhone Simulator
- What is the right way to check for a null string in Objective-C?
- Dismiss keyboard on touch anywhere outside UITextField
- iPhone “slide to unlock” animation
- Where to store global constants in an iOS application?
- Is it possible to distinguish between locking the device and sending an app to background?
- Current Week Start and End Date
- How can I change the font of the back button for my navigation bar?
- How to add a ‘Done’ button to numpad keyboard in iOS
- Catch an exception for invalid user input in swift
- Show iPhone cut copy paste menu on UILabel
- is it possible to save NSMutableArray or NSDictionary data as file in iOS?
- UIView’s border color in Interface builder doesn’t work?
- Prevent dispatch_after() background task from being executed
- Two colors for UILabel TEXT