With OS > 3.0 you can do this:
//you need this import
#import <QuartzCore/QuartzCore.h>
[imageView.layer setBorderColor: [[UIColor blackColor] CGColor]];
[imageView.layer setBorderWidth: 2.0];
More Related Contents:
- Changing UIImage color
- Draw another image on a UIImage
- Making a UIImage to a circle form
- (iphone) UIImageView setImage: leaks?
- How to show Image over Map not as Pin but as seperate image? [duplicate]
- iPhone/iOS JSON parsing tutorial [closed]
- How to load a UIView using a nib file created with Interface Builder
- UIImageView – How to get the file name of the image assigned?
- Difference between [NSMutableArray array] vs [[NSMutableArray alloc] init]
- iOS Image Orientation has Strange Behavior
- Is there any limit in storing values in NSUserDefaults?
- Any quick and dirty anti-aliasing techniques for a rotated UIImageView?
- Finding image type from NSData or UIImage
- UILabel updating stops during scrolling UIScrollView
- UIButton not showing highlight on tap in iOS7
- Dismissing a Presented View Controller
- How to make a call programmatically?
- Streaming mp3 audio with AVPlayer
- Detect carrier connection type (3G / EDGE / GPRS)
- How to cache content in UIWebView for faster loading later on?
- iphone app allow background music to continue to play
- Weak and strong property setter attributes in Objective-C
- iOS Low Memory Crash, but very low memory usage
- iOS save photo in an app specific album
- Byte Array to NSData
- How to manage UIImageView content mode?
- UIBarButtonItem: target-action not working?
- Black screen instead of launch image on iPad
- Why do weak NSString properties not get released in iOS?
- Screen size of iPhone 5