• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 773
  • Last Modified:

Can I put a shadow on a text view on Xcode ?

Dear Expert.

I'm developing an iPhone application on Xcode. I have put some labels and put a shadow. I have also added a Text View and I want to put also a shadow, but I cannot find how to do it.

Could you help me ?
0
gplana
Asked:
gplana
  • 2
  • 2
1 Solution
 
darbid73Commented:
A UITextView is treated a little differently to a UILabel.  For a UITextView you will have to  #import <QuartzCore/QuartzCore.h> and then use

view.layer.shadowColor
view.layer.shadowOffset
view.layer.shadowOpacity
view.layer.shadowRadius

Open in new window

0
 
gplanaAuthor Commented:
Is it possible to do it directly on XCode designer window ? I mean, by design, not by code.
0
 
darbid73Commented:
As far as I know, No.
0
 
gplanaAuthor Commented:
Thank you.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now