Try this
searchBar.layer.borderWidth = 1;
searchBar.layer.borderColor = [[UIColor lightGrayColor] CGColor];
Related Contents:
- iPhone App Icons – Exact Radius?
- Styling input buttons for iPad and iPhone
- How to detect total available/free disk space on the iPhone/iPad device?
- position: fixed doesn’t work on iPad and iPhone
- How to center a subview of UIView
- Xcode doesn’t see my iOS device but iTunes does
- Animate change of view controllers without using navigation controller stack, subviews or modal controllers?
- How can I save an image to the camera roll?
- UILabel is not auto-shrinking text to fit label size
- How to detect that animation has ended on UITableView beginUpdates/endUpdates?
- Navigation bar appear over the views with new iOS7 SDK
- Is it possible to use AutoLayout with UITableView’s tableHeaderView?
- iOS: Access app-info.plist variables in code
- Is there a UIView resize event?
- How to build a framework or library for other developers, the secure way? [closed]
- What are the sizes used for the iOS application splash screen?
- iOS Development: How can I induce low memory warnings on device?
- How to write a BOOL predicate in Core Data?
- Basic Drag and Drop in iOS
- What major ASIHTTPRequest features is AFNetworking missing?
- Converting NSData to NSString in Objective c
- What is the iOS 5.0 user agent string?
- iPhone/iPad browser simulator? [closed]
- Share data between two or more iPhone applications
- What programming languages can one use to develop iPhone, iPod Touch and iPad (iOS) applications?
- How can I prevent the display on an iOS device from dimming and turning off? [duplicate]
- How to display activity indicator in middle of the iphone screen?
- iOS download and save image inside app
- iOS SDK – Programmatically generate a PDF file
- How to register a custom app opening URL scheme with Xcode 4?
- How to support both iPad and iPhone retina graphics in universal apps
- UISegmentedControl text programmatically
- iOS keyboard with “Go” button instead of return
- How to overwrite a file with NSFileManager when copying?
- Drawing Smooth Curves – Methods Needed
- Forwarding UIGesture to views behind
- iOS 4.2+ webfont (ttf) ‘s bold font-weight rendering bug
- How to remove gesture recogniser
- iOS devices as web server [closed]
- What is the iOS 6 user agent string?
- How to pin the Public key of a certificate on iOS
- How to trigger cancel button in UISearchBar?
- iOS: Download image from url and save in device
- Adding “Open In…” option to iOS app
- How to log all methods used in iOS app
- “No previous prototype for function” warning
- How to get information about free memory and running processes in an App Store approved app? (Yes, there is one!)
- Max/Min Scale of Pinch Zoom in UIPinchGestureRecognizer – iPhone iOS
- How to manage UIImageView content mode?
- Delete new version of app in iTunes connect