title: CALayer does not seem to be defined
body: <p>I wanted to add rounded Rects to a UITextView as explained in <a href="https://stackoverflow.com/questions/1824463/how-to-style-uitextview-to-like-rounded-rect-text-field">How to style UITextview to like Rounded Rect text field?</a>. However when I do this I receive an error message that the methods used there are not found. I think this is weird as they are also still in the documentation. On the other side XCode does not show anything in autocomplete on the field layer. Is this field somehow deprecated or where could be the problem?</p>
  
  <p>Here the two code snippets I was using:</p>
  
  <pre><code>@interface AddItemViewController : UIViewController {    
      IBOutlet UITextView *detailsTextView;
  }
  @end
  </code></pre>
  
  <p>Hier  will ich dann die Eigenschaften aendern.</p>
  
  <pre><code>    - (void)viewDidLoad
  {
      [super viewDidLoad];
      // add rounded rects to detailsTextView
      //first leads to warning that method is unknown
      [detailsTextView.layer setCornerRadius:8.0f];
      // displays error that property is not found on object of type CALayer *
      textView.layer.cornerRadius = 8.0f;
      detailsTextView.clipsToBounds = YES;
  }
  </code></pre>