uiview - How to set the textcolor for a UILabel, which I get using the tag? -


[[self.view viewwithtag:thistag].layer settextcolor:[uicolor redcolor]]; 

this doesn't work.

i assume don't error message; otherwise have posted it. assume following:
thistag tag not exist in view hierarchy. in case, viewwithtag: return nil. send message layer, , settextcolor: nil, nothing.
if viewwithtag: return uiview object, layer property, , send settextcolor:, not defined calayer object, , give error message.


Comments