StoryBoard

控制器手动添加xib文件

#-----控制器手动添加xib文件 必须添加以下代码不然出错
DatedbFileTopView  注意         view.autoresizingMask = UIViewAutoresizingNone;

UIScrollView添加约束
使用storyboard进行跳转
xib绑定UIView

#-----代码跳转StoryBoard界面
//将我们的storyBoard实例化,“Main”为StoryBoard的名称
UIStoryboard *mainStoryBoard = [UIStoryboard storyboardWithName:@"Me" bundle:nil];
//将第二个控制器实例化,"SecondViewController"为我们设置的控制器的ID
ReceiptAddressVC *vc = [mainStoryBoard instantiateViewControllerWithIdentifier:@"ReceiptAddressVC"];
[self.navigationController pushViewController:vc animated:YES];
-#-----跳转StoryBoard根界面
TestViewController *testVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateInitialViewController];


storyBoard 一些操作
https://www.jianshu.com/p/96f2afb31b8d
删除storyBoard

@IBInspectable
https://blog.csdn.net/qlt445_ndsc/article/details/51325278

xib 里面再引入其他xib

你可能感兴趣的:(StoryBoard)