But today I stumbled upon this thread and was able to discover a way to do that.
Any way I will share the code here. If there are any negative implications behind this solution, please share it.
Code:
yourTextView.layer.borderWidth = 1;
yourTextView.layer.cornerRadius = 8; //This is for achieving the rounded corner.
yourTextView.layer.borderColor = [[UIColor grayColor] CGColor];
And don't forget to include the Quartz core framework.
#import <QuartzCore/QuartzCore.h>
Bye !
Brilliant. This has been bugging me for longer than I care to think. So simple too.
ReplyDeleteJust need to add the internal shadow somehow.
Many thanks for posting