title: Self Scrollable text inside CAScrollLayer
body: <p>I want to have text inside of a CAScrollLayer scroll by itself from starting point to ending point and then reset the animation. However I cannot seem to get a CATextLayer inside of a Scroll layer. I have even attempted to create a UILabel and use its layer as a sublayer to the scroll layer.</p>
  
  <p>Here is the non working code. I do not know what the culprit is or what I am missing.</p>
  
  <pre><code> UILabel *sampleText = [[UILabel alloc] init];
  
  sampleText.font = [UIFont systemFontOfSize:20];
  
  sampleText.text = @"Hello World";
  
  
  
  [sampleText sizeToFit];
  
  [scrollLayer addSublayer:sampleText.layer];
  
  
  //add scroll layer to view controllers view
  [self.view.layer addSublayer:scrollLayer];
  </code></pre>
  
  <p>Here is my try with CATextLayer</p>
  
  <pre><code>CATextLayer *numberLayer = [CATextLayer layer];
  [numberLayer setFont:@"Helvetica-Neue"];
  [numberLayer setFrame:CGRectMake(0, 0, 20, 30)];
  [numberLayer setString:@"Hello Wolrd"];
  [numberLayer setAlignmentMode:kCAAlignmentCenter];
  [numberLayer setForegroundColor:[[UIColor blackColor] CGColor]];
  numberLayer.zPosition = 99;
  
  [scrollLayer addSublayer:numberLayer];
  
  [self.view.layer addSublayer:scrollLayer]
  </code></pre>