平级控件拖线

UIViewController

   >UIView

     >testButton

     >testView

此时,从storyboard是无法拖线到testView的,但是在testView中写入:

@property (nonatomic, weak) IBOutlet UIButton *btn; 然后拖线到storyboad中的testButton,就可以成功在

testView中拿到和它平级的testButton

原文地址:https://www.cnblogs.com/yintingting/p/4552411.html