SVN版本回退
    
            
摘要:【SVN版本回退】 在Windows里,先打开Log面板,根据想要回退的内容,然后选择revert to this revision或者revert changes from this revision。 关于这2个操作的区别,在:http://www.iusesvn.com/bbs/threa...
        
阅读全文
摘要:iOS之Streams Streams提供了与各种设备交换数据的设备无关的一致的方法,它是一个有序的字节流。 除了基于文档的stream外,没有stream可以被寻址。 Stream被创建后,必需被加入Runloop中,因为Stream是异步操作。然后调用open才是真正的读取数据。 NSStream不支持连接到远端主机,只有CFStream才支持。连接到远端的CFStream创建后,可以转换成NSStream来处理。
        
阅读全文
摘要:iOS之判断网络状况 iOS Framework : SystemConfiguration.framework 中,包含了SCNetworkReachability工具,可以帮助监测网络状况,所有定义包含在SCNetworkReachability.h中。 iOS Library的 sample code中,包含Reaqchability工程,里面的Reachability类是对SCNetworkReachability的封装,可实际开发中可以将Reachability添加到自己的工程中拿来直接使用。 Reachability是异步工具机制,把网络状况类型缩小到了3种:NotRea...
        
阅读全文
摘要:ViewController之iOS5.11.You never directly assign the views to the window. Instead, you assign a view controller to the window, and the view controller automatically adds its view to the window。2.Every view is controlled by only one view controller.3.content view controllers and container view contro
        
阅读全文
摘要:【iOS之App数据存储】 1、to obtain access to locations outside of your app’s container directory, you must request appropriate entitlements. 为了能够访问app目录之外的目录,你必须申请合适的权限。 2、an app is generally prohibited from accessing or creating files in directories outside of its home directory. app通常被禁止在主目...
        
阅读全文
摘要:【JS中的变量作用域】 JS作用域跟{}没关系,JS中作用只有2种: 1、全局作用域。 2、函数作用域。 所以对于如下情形 X可以被正常输出为5. 另外要注意的是,JS变量声明会前提,因为是JS分为解析期和运行期。
        
阅读全文