09 2013 档案
摘要:在iOS开发中,我们会发现一些偏底层或基础代码是直接可以复用的,当我们换一个项目,改变的只需要是偏上层的业务逻辑代码,所以我们可以把这部分 基础代码制作为一个静态库static library,并不断扩展,这样我们重新开发一个新项目,就可以直接引进这个静态库,再添加上层的业务逻辑代码即可,会大大提高我们开发的效率。下面以一个例子说明制作静态库和相关导入的必须操作。假设这个静态库为Commom,新工程为Example。首先,新建一个静态库,如图:点完成后就可以生成一个静态库了。然后把需要添加的基础代码添加就可。然后我们像平时一样建立的工程Example,把Commom.xcodeproj工程直接
阅读全文
摘要:1) Select the main view, set the background color to black (or whatever color you want the status bar to be2) Make sure the background is a self contained subview positioned as a top level child of the controller's view.Move your background to become a direct child of the controller's view.
阅读全文
摘要:一 Status bar重叠问题:方法一:隐藏Status bar 在plist里面增加2个变量 Status bar is initially hidden -> YES View controller-based status bar appearance -> NO方法二:改为和IOS6 一样的显示方式Set UIViewControllerBasedStatusBarAppearance to NO in info.plist (To opt out of having view controllers adjust the status bar style so that
阅读全文
摘要:NetConnect Client Installation and Usage Instructions1. Download the client here: Macintosh Installer Or this link: www.juniper.net/support/products/sa/7.1/2. The installer will download and should run automaticallyIf it doesn't start automatically double-click on the NetworkConnect.pkg file3. F
阅读全文
摘要:copy: 创建一个引用计数为1的对象,然后释放旧的对象retain:释放旧的对象,将旧对象的值赋予输入对象,再提高输入对象的引用计数为 1Copy其实是建立了一个相同的对象,而retain不是:比如一个NSString对象,地址为0×1111,内容为@”STR”Copy到另外一个NSString之 后,地址为0×2222,内容相同,新的对象retain为1, 旧有对象没有变化retain到另外一个NSString之 后,地址相同(建立一个指针,指针拷贝),内容当然相同,这个对象的retain值+1也就是说,retain是指针拷贝,copy是内容拷贝。在拷贝之前,都会释放旧
阅读全文

浙公网安备 33010602011771号