How to get a reference to a control in the view?
Posted
by Kevin
on Stack Overflow
See other posts from Stack Overflow
or by Kevin
Published on 2010-05-18T00:33:20Z
Indexed on
2010/05/18
0:40 UTC
Read the original article
Hit count: 300
iphone
If I have a UIScrollView set up in the view via the Interface Builder, how do I get a reference to it in the ViewController implementation? I want to programmatically add labels to the scroll view.
For example, in C# if you have a textbox declared in the UI/form, you can access it by simply using the ID declared for that textbox. It doesn't seem this simple in objective c.
Thanks Kevin
© Stack Overflow or respective owner