I made a right border using this:
leftScrollView.clipsToBounds = YES;
CALayer *rightBorder = [CALayer layer];
rightBorder.borderColor = [UIColor darkGrayColor].CGColor;
rightBorder.borderWidth = 1;
rightBorder.frame = CGRectMake(-1, -1, CGRectGetWidth(leftScrollView.frame), CGRectGetHeight(leftScrollView.frame)+2);
[leftScrollView.layer addSublayer:rightBorder];
Related Contents:
- Rounded UIView using CALayers – only some corners – How?
- How can I animate the movement of a view or image along a curved path?
- UIButton can’t be touched while animated with UIView animateWithDuration
- Disabling implicit animations in -[CALayer setNeedsDisplayInRect:]
- Animating a custom property of CALayer subclass
- CALayers didn’t get resized on its UIView’s bounds change. Why?
- Can’t add a corner radius and a shadow
- What does the -all_load linker flag do?
- To ARC or not to ARC? What are the pros and cons? [closed]
- iPhone UIView Animation Best Practice
- How to create a custom keyboard
- Storyboard – refer to ViewController in AppDelegate
- How to allow only single UIViewController to rotate in both Landscape and Portrait direction?
- program access to iPhone volume buttons
- Objective-C parse hex string to integer
- How to convert NSData to byte array in iPhone?
- iCloud basics and code sample [closed]
- IOS 6 force device orientation to landscape
- How do I add a gradient to the text of a UILabel, but not the background?
- Grand Central Dispatch (GCD) vs. performSelector – need a better explanation
- How do I auto size a UIScrollView to fit its content
- Does UIGestureRecognizer work on a UIWebView?
- Save Youtube video to iPhone in the app
- Adding C++ Object to Objective-C Class
- Center text vertically in a UITextView
- Is there a way to pause a CABasicAnimation?
- What are block-based animation methods in iPhone OS 4.0?
- How should I store UIImages within my Core Data database?
- How to check programmatically if an App is installed?
- Parse NSURL query property
- iPhone: How to Pass Data Between Several Viewcontrollers in a Tabbar App
- CAGradientLayer, not resizing nicely, tearing on rotation
- How can I sort an NSArray containing NSDictionaries?
- Objective-C: Best way to access REST API on your iphone
- Property Declaration and Automatic Backing Storage Allocation
- Memory Management in Objective-C [duplicate]
- writing NSDictionary to plist in my app bundle
- iOS – Scale and crop CMSampleBufferRef/CVImageBufferRef
- NSArray Equivalent of Map
- When does an associated object get released?
- How to cache content in UIWebView for faster loading later on?
- Finding list of installed apps on iphone
- NSMutableString as retain/copy
- Windows notepad not supporting newline character ‘\n’
- iOS 5 does not allow to store downloaded data in Documents directory?
- Could not find a storyboard named ‘Main’ in bundle
- How to scroll UITableView to specific position
- How can you apply distortions to a UIImage using OpenGL ES?
- How to set content size of UIScrollView dynamically
- Getting UILabel to produce an ellipsis rather than shrinking the font