Cocoa-Touch-Additions
Cocoa-Touch-Additions copied to clipboard
A collection of assorted categories to common Cocoa Touch classes
A collection of assorted categories to common Cocoa Touch classes
-
UIColor+ColorFromString
Adds a class method to UIColor for creating UIColor objects from a string
- (UIColor *)colorFromString:(NSString *)string; Class method that returns a color object based on the RGBA components specified as a comma-separated string of decimal (0.0 to 1.0) values, eg. @"0.5, 0.5, 0.5, 1.0" for 100% opaque gray
-
UITextView+RoundedCorners
Adds an instance method to UITextView to toggle rounded corners appearance
- (void)setRoundedCorners:(BOOL)rounded; Instance method to specify if the receiver should draw itself with rounded corners and a border
-
NSValue+CLLocationCoordinate2D
Adds methods to NSValue to represent geographical coordinate information using an NSValue object
- (NSValue *)valueWithCLLocationCoordinate2D:(CLLocationCoordinate2D)coordinate; Creates and returns a value object that contains the specified coordinate structure
- (CLLocationCoordinate2D)CLLocationCoordinate2DValue Instance method that returns a coordinate structure representing the data in the receiver
-
UIWebView+ContentHeight
Adds an instance method to UIWebView that returns the height of its content measured in pixels
- (CGFloat)contentHeight; Returns the height of the rendered content for the receiver measured in pixels