08 2012 档案
摘要:一、主要用途 弹出模态ViewController是IOS变成中很有用的一个技术,UIKit提供的一些专门用于模态显示的ViewController,如UIImagePickerController等。弹出模态ViewController主要使用于一下这几种情形: 1、收集用户输入信息 2、临时呈现一些内容 3、临时改变工作模式 4、相应设备方向变化(用于针对不同方向分别是想两个ViewController的情况) 5、显示一个新的view层级 这几种情形都会暂时中断程序正常的执行流程,主要作用是收集或者显示一些信息。二、几个概念和常用设置1、presenting view co...
阅读全文
摘要:在xib的控件的background选择other把opacity 拖到最左边,也就是为0%,成功了,透明了!
阅读全文
摘要:在一个tableView中加入两个自定义cell时,出现了如下错误,在网上找了一下出现这个问题的原因很多。我所遇到的是第二次加载第二个cell时,才会出现。'-[NSIndexPath setTableViewStyle:]: unrecognized selector sent to instance 0x7fb28b0解决方法:在定义cell时,加入 if([[cell.contentView subviews] count] >0) { for (UIView *temp in [cell.contentView subviews]) { [temp removeFromS
阅读全文
摘要:一开始选了ARC,没关系"Build Settings"and turn off the option"Objective-C Automatic Reference Counting" NO'release' is unavailable: not available in automatic reference counting mode..解决办法:You need to turn offAutomatic Reference Counting. You do this by clicking on your project in
阅读全文
浙公网安备 33010602011771号