ShannonChenCHN / iOSDevLevelingUp

A journey of leveling up iOS development skills and knowledge.
365 stars 105 forks source link

storyboard 与布局适配 #8

Open ShannonChenCHN opened 7 years ago

ShannonChenCHN commented 7 years ago
ShannonChenCHN commented 7 years ago

参考资料:

一些使用配置文件进行配置的框架

其他

ShannonChenCHN commented 7 years ago

iPhone X 相关

Safe Area

ShannonChenCHN commented 6 years ago

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

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

[[UIStoryboard storyboardWithName:@"YourStoryBoardName" bundle:nil] instantiateViewControllerWithIdentifier:@"StoryboardIDOfYourController"];
ShannonChenCHN commented 6 years ago

@3X 和 @2x 的问题

具体见 技术问题 - 2018.05.25 周五

延伸阅读: