samedi 27 décembre 2014

iOS UIView subclass draw see-through text to background

I want to draw text onto my subclass on UIView so that the text is cut out of the shape and the background behind the view shows through, just like in the OSX Mavericks logo found here.



  • background image view

  • IBOutlet UIView *ViewTest

  • IBOutlet UIlabel *labelTest alpha:0 style (Show background image)


http://s25.postimg.org/tkf1sa3x9/1122.png


I would say that I'm more of an intermediate/early advanced iOS developer so feel free to throw some crazy solutions at me. I'd expect I'd have to override drawRect in order to do this.




Aucun commentaire:

Enregistrer un commentaire