开发者

property name of a textfield

In my iphone apps I have two textfields. I put a value in the name property of each textfield, but in the code I want to get the name of开发者_运维知识库 the textfield itself. I tried textfield.name but that does not work. How can I have the value of the property name?


You mean name like in Interface Builder Identity? Then the answer is no, you can't access it programatically. It's there only to help you tell them apart from each other inside Interface Builder. However the tag property is accessible both in code and in IB (first tab in IB)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜