Locating a control in xcode

Discussion in 'iOS Programming' started by ukdegree, Dec 6, 2010.

  1. ukdegree macrumors newbie

    Joined:
    Dec 6, 2010
    #1
    Hi,

    I am new to xcode iPhone development. I am trying to develop an app which need to be coded with some validation.

    Example:
    (uilabel) option 1: _____ (uiTextfield)
    (uilabel) option 1: _____ (uiTextfield)
    (uilabel) option 1: _____ (uiTextfield)
    (uilabel) option 1: _____ (uiTextfield)

    is there any way to uniquely identify a control by its ID. like in javascript we locate a control by document.getElementbyId('').value='????'

    please help me
    Thanks
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    UIViews (and all subclasses) do not have a name/ID that is set automatically. If you want to do something like that it is up to you to set the documented tag property.
     

Share This Page