Is it true Xcode/IB DOES NOT check for protocols?
问题 Xcode5 milieu only. (Not older versions.) 1) make a new class called say Test. it's a UIViewController @interface Test:UIViewController 2) in storyboard, make a new screen, a UIViewController, change it to "Test" obviously, if you add a control (say, a button) on the storyboard, you can drag it to an IBOutlet defined in Test.h. No problem. 3) Now in Test.h add the two protocols .. @interface Test:UIViewController < UICollectionViewDataSource, UICollectionViewDelegateFlowLayout > 4) now in IB