File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
bk1ch11p472action/bk1ch11p472action Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 37
37
<action selector =" buttonPressed:" destination =" x5A-6p-PRh" eventType =" touchUpInside" id =" N6h-od-dCg" />
38
38
</connections >
39
39
</button >
40
+ <button opaque =" NO" contentMode =" scaleToFill" fixedFrame =" YES" contentHorizontalAlignment =" center" contentVerticalAlignment =" center" buttonType =" roundedRect" lineBreakMode =" middleTruncation" translatesAutoresizingMaskIntoConstraints =" NO" id =" Vfs-yC-YMh" >
41
+ <rect key =" frame" x =" 69" y =" 264" width =" 119" height =" 30" />
42
+ <state key =" normal" title =" Responder Chain" >
43
+ <color key =" titleShadowColor" white =" 0.5" alpha =" 1" colorSpace =" calibratedWhite" />
44
+ </state >
45
+ <connections >
46
+ <action selector =" showResponderChain:" destination =" vXZ-lx-hvc" eventType =" touchUpInside" id =" poO-6m-HyX" />
47
+ </connections >
48
+ </button >
40
49
</subviews >
41
50
<color key =" backgroundColor" white =" 1" alpha =" 1" colorSpace =" custom" customColorSpace =" calibratedWhite" />
42
51
</view >
Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ class ViewController: UIViewController {
30
30
}
31
31
32
32
33
+ @IBAction func showResponderChain( sender: UIResponder ) {
34
+ var r : UIResponder ?
35
+ for ( r = sender; r != nil ; r = r!. nextResponder ( ) ) {
36
+ println ( r!)
37
+ }
38
+ }
33
39
34
40
}
35
41
You can’t perform that action at this time.
0 commit comments