#import <QuartzCore/QuartzCore.h>
....
// typically inside of the -(void) viewDidLoad method
self.yourUITextView.layer.borderWidth = 5.0f;
self.yourUITextView.layer.borderColor = [[UIColor grayColor] CGColor];
More Related Contents:
- iOS: what’s the fastest, most performant way to make a screenshot programmatically?
- CALayer with transparent hole in it
- How to draw radial gradients in a CALayer?
- Adding quartzcore to Xcode 4 for iOS
- Calculate next date in week
- How to get boolean value from switch state?
- Randomly move the uibutton some 8 static position using timer in ios [closed]
- Change User Agent in UIWebView
- How do you trigger a block after a delay, like -performSelector:withObject:afterDelay:?
- Error “library not found for” after putting application in AdMob
- How to tell SwiftUI views to bind to nested ObservableObjects
- Update badge with push notification while app in background
- App rejected, but I don’t use UDID
- NSURLErrorDomain error code -999 in iOS
- Missing return UITableViewCell
- Use Xcode 7 with iOS 10
- No AVPlayer Delegate? How to track when song finished playing? Objective C iPhone development
- iOS 8 Rotation Methods Deprecation – Backwards Compatibility
- Toggling Privacy settings will kill the app
- How to switch to different Storyboard for iPhone 5?
- Warning: The Copy Bundle Resources build phase contains this target’s Info.plist file
- Custom Font Sizing in Xcode 6 Size Classes not working properly with Custom Fonts
- Record audio and save permanently in iOS
- Replacement for stringByAddingPercentEscapesUsingEncoding in ios9?
- NSXMLParser: Unexpected result with non-ASCII characters
- It’s possible to change push notification message before display on device from iOS side?
- How to convert an Int to a Character in Swift
- IOS: one IBAction for multiple buttons
- Is this code drawing at the point or pixel level? How to draw retina pixels?
- how to add animation to launch screen in iOS 9.3 using Objective c