xib和storyboard的不同點總結
-
storyboard可以有多個頁面以及定義頁面之間的邏輯關係
xib描述的是一個頁面 -
xib中添加CollectionView不能添加CollectionViewCell;添加TableView不能添加TableViewCell
storyboard中添加CollectionView可以添加CollectionViewCell;添加TableView可以添加TableViewCell -
storyboard可以定義UITableView的StaticCell
xib不支持StaticCell -
storyboard可以添加一個ViewController類型的控件
xib不支持添加一個ViewController類型的控件