Instance Property


An integer that you can use to identify view objects in your application.


var tag: Int { get set }


The default value is 0. You can set the value of this tag and use that value to identify the view later.

See Also

Identifying the View at Runtime

func viewWithTag(Int) -> UIView?

Returns the view whose tag matches the specified value.