开发者

looping through controls in objective c

开发者 https://www.devze.com 2023-02-14 16:19 出处:网络
I have several labels on my UIView that I want to change the properties on. What I would like to do is iterate through them setting/getting there values.If you are familiar with C# then it\'s the Find

I have several labels on my UIView that I want to change the properties on. What I would like to do is iterate through them setting/getting there values. If you are familiar with C# then it's the FindControl function I am trying to emulate.

In essence the question is how to get all the controls on a UIView so I can manipulate them.

Any help greatly appreicated.

开发者_JAVA技巧

Mike


The subviews property of a UIView gives you an NSArray holding all subviews.

0

精彩评论

暂无评论...
验证码 换一张
取 消