摘要:
在做网站的过程中,大部分的页面结构都是相似的。如都有相同的头部和底部。各个页面这样仅仅是中间的部分不同。Yii中的布局文件就是用来实现这样的功能。如:布局文件:@app/views/layouts/main.php 后台action:public function action... 阅读全文
摘要:
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change执行 sudo xcode-select -swi... 阅读全文
摘要:
本文是我的 WWDC 2014 笔记 中的一篇,涉及的 Session 有What's New in Cocoa TouchBuilding Adaptive Apps with UIKitWhat's New in Interface BuilderView Controller Advancem... 阅读全文
摘要:
ios layout机制相关方法- (CGSize)sizeThatFits:(CGSize)size- (void)sizeToFit——————-- (void)layoutSubviews- (void)layoutIfNeeded- (void)setNeedsLayout——————–- ... 阅读全文
摘要:
XCode 4.3.2 新功能 - Storyboard最近开始比较有空在玩 XCode 4.3.2,赫然发现它多了个 Storyboard 的东东。Storyboard这个东西一般来说是在做创意发想的时候,用来将自己的想的一些故事情节画成像是连环漫画一样,想不到 Apple 把它用在这里,真是佩服... 阅读全文
摘要:
Getting a Storyboard Object+ storyboardWithName:bundle: //获得特定的storyBoradInstantiating Storyboard View Controllers– instantiateInitialViewController /... 阅读全文
摘要:
Storyboard引入了2个概念:1. scene:一个场景,由一个viewController和相关的xib表示。2. segue:在这是用于连接scenes,其有多种类型,iphone包括:Push,Modal,Custom。当然segue也负责传递数据和返回数据。整个程序的界面转换就是在各个... 阅读全文
摘要:
+ (Class)layerClass; 每个UIView对象都有一个隐式层(underlying layer),即一个CALayer对象。该方法返回隐式层所属的类。通常为CALayer类型。不建议创建CALayer的子类,如确实需要CALayer子类。需实现该方法,并返回子类... 阅读全文
摘要:
init(nibName nibNameOrNil: String!, bundle nibBundleOrNil: NSBundle!)其中nibName名称必须与要调用的Interface Builder文件名一致,但不包括文件扩展名,比如要使用“aa.xib”,则应写为[[UIViewCont... 阅读全文
摘要:
当一个视图控制器被创建,并在屏幕上显示的时候。 代码的执行顺序1、 alloc 创建对象,分配空间2、init (initWithNibName) 初始化对象,初始化数据3、loadView 从nib载入视图 ,通常这一步不需要去干涉。除非你... 阅读全文