代码改变世界

Pad的界面布局好多时候都要做两套------横屏和竖屏,但在界面切换时,该让哪个布局显示就要判断了,有多种方法,我记录下我用的一种,感觉比较方便:

2015-08-12 10:56 by marysneaker, 536 阅读, 0 推荐, 收藏, 编辑
摘要:NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; //Get the notification centre for the app [nc addObserver:self //Add yourself as an ... 阅读全文