Submarinex 发表于 2012-10-24 22:58:53

码代码时碰到的一些小问题 & Xcode的一些使用方法

<div class="postcontent">我还是菜鸟,写下的记录不一定完全正确。多找资料,多google吧。
Xcode 4.3.2
1、添加Frameworks,或者看图
http://pic002.cnblogs.com/images/2012/266130/2012071800275681.jpg
2、找不到设置,可以在搜索栏里搜索关键字。
比如设置自动引用计数(ARC),在右上方输入关键字“ARC”。
http://pic002.cnblogs.com/images/2012/266130/2012071920483962.jpg
3、添加输出口(Outlets)或响应事件的方法(Actions),可以直接控件拖到对应的视图控制器实例类文件中。
4、在Storyboard中能否使用xib文件?
A:见6。
5、用Storyboard建的视图能否用在iOS4或更早的版本中?
A: storyboards will run only on devices sporting iOS 5 and above.
6、When to use Storyboard and when to use XIBs
7、Property:strong,weak?
http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gifhttp://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gifstrong & weak<div id="cnblogs_code_open_ad97f7b2-3f9e-4334-aafa-52c14a19ae6c" class="cnblogs_code_hide">1 strong2 Specifies that there is a strong (owning) relationship to the destination object.3 weak4 Specifies that there is a weak (non-owning) relationship to the destination object.5 If the destination object is deallocated, the property value is automatically set to nil.6 (Weak properties are not supported on OS X v10.6 and iOS 4; use assign instead.)
页: [1]
查看完整版本: 码代码时碰到的一些小问题 &amp; Xcode的一些使用方法