平级控件拖线

UIViewController

   >UIView

     >testButton

     >testView

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

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

testView中拿到和它平级的testButton

 

posted @ 2015-06-04 17:17  Emyin  阅读(133)  评论(0编辑  收藏  举报