Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storyboard 与布局适配 #8

Open
ShannonChenCHN opened this issue Apr 22, 2017 · 4 comments
Open

storyboard 与布局适配 #8

ShannonChenCHN opened this issue Apr 22, 2017 · 4 comments

Comments

@ShannonChenCHN
Copy link
Owner

ShannonChenCHN commented Apr 22, 2017

  • 设计规范
  • 相关技术
    • storyboard 和 xib
      • 如何通过代码从 storyboard 中初始化一个 view controller
    • AutoLayout
    • autoresizing
    • sizeclass(< Xcode 8)
    • Trait Variations(>= Xcode 8)
    • 纯代码
  • 最佳实践
@ShannonChenCHN ShannonChenCHN changed the title UITableView VS. UICollectionView storyboard 与 代码布局 Apr 27, 2017
@ShannonChenCHN ShannonChenCHN changed the title storyboard 与 代码布局 storyboard 与布局适配 Apr 27, 2017
@ShannonChenCHN
Copy link
Owner Author

通过代码从 storyboard 中初始化 View Controller

第一步:在 storyboard 中设置该 controller 的 Storyboard ID
第二步:使用以下方法进行初始化

[[UIStoryboard storyboardWithName:@"YourStoryBoardName" bundle:nil] instantiateViewControllerWithIdentifier:@"StoryboardIDOfYourController"];

@ShannonChenCHN
Copy link
Owner Author

ShannonChenCHN commented May 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant