1
Однако, когда я передаю значение тега для UIProgressView, оно всегда отображается как 0, когда я извлекаю его из отправителя в методе.Всегда тег 0 от отправителя (UIButton)
псевдокоде
var c : Int = 0
func randomFunction() {
c++
// some settup for UIButton and UIProgressView
myProgressView.tag = c
myButton.addTarget(self, action: "holding:", forControlEvents: .TouchDown)
}
func holding (sender:UIButton!) {
print(sender.tag)
}