我目前正在阅读一本关于swift设计模式的书,并且有一个程序可以在步进器的值更改或与其关联的文本字段更改时通知方法,这是方法@IBActionfuncstockLevelDidChange(sender:AnyObject){println("MethodTrigged")ifvarcurrentCell=senderas?UIView{while(true){currentCell=currentCell.superview!;ifletcell=currentCellas?ProductTableViewCell{ifletid=cell.productID?{varnewStoc