Problems solving Challenge 1


#1

Hello,

I got Challenge 2 working fine, but I’m having some trouble getting Challenge 1 to work.

If I just add a CATextLayer to each image layer, everything works fine, but the text layers will sit in the lower left corner of the images. However, as soon as I set the text layers’ position properties to CGPointMake(imageBounds.size.width / 2, imageBounds.size.height / 2), all the text layers start in the upper right corner of the window, moving towards the image layers’ centers as the initial animation progresses.

What am I doing wrong?

Regards,
tajmahal