• Apple iOS XCode 收集来自网络


    1、Xcode的SDKs的离线阅读

      首先去Xcode的Preference中的Documentation Sets下,选择所需的docset,这里是iPhone 4.0 Reference Library,右击选择“Get Info…”,找到Feed URL:http://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone4_0.atom,用浏览器打开,下面列出了许多版本,下载到本地后,拷贝到Mac的/Developer/Documentation/Docsets目录下,使用终端命令:
      sudo xar -xf 下载的文件名.xar
      将其解压,然后使用:
      sudo chown -R -P devdocs 解压后的文件名.docset,将文档的所有者改为devdocs。

    个人实践:在XCode4和雪豹环境下

    http://developer.apple.com/rss/com.apple.adc.documentation.AppleXcode4_0.atom
    http://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone4_3.atom
    http://developer.apple.com/rss/com.apple.adc.documentation.AppleSnowLeopard.atom

    2、如何给XCode代码注释,更方便通过doxygen工具生成html代码文档
    在http://www.vckbase.com/document/viewdoc/?id=1287地址上
    描述了几种,我用了:

    格式A:

    //! 简洁描述


    //! 详细描述信息从
    //!这里开始

    格式B:

    ///简洁描述
    /**详细描述信息*/

    以上两种实践通过

    为了注释函数参数可用@param或\param,类似的还有return ,sa=see also
    eg.

    /// Obtain from DB collect
    /**
    \param Statement
    \param Params
    \param ItemClass
    \param Containter
    \return void
    */
    -(void) GetItem:(sqlite3_stmt *)Statement Params:(NSArray *) Params ItemClass:(NSObject *)ItemClass Containter:(NSMutableArray *) Containter;
    

    http://www.codesky.net/article/doc/200408/2004080922647535.htm,可以参看


    3、svn服务器的搭建
    参考地址:
    http://hi.baidu.com/vlan168/blog/item/e6334216085ac74f21a4e922.html
    概要描述下:

    服务器软件:svn-1.4.0-setup.exe
    客户端软件:TortoiseSVN-1.6.16.21511-win32-svn-1.6.17.msi

    建立版本库(Repository):
      命令:
        svnadmin create E:\svndemo\repository

      TortoiseSVN图形化的完成这一步:
        在目录E:\svndemo\repository下"右键->TortoiseSVN->Create Repository here...“, 然后可以选择版本库模式, 这里使用默认即可, 然后就创建了一系列目录和文件。

    简单配置服务器:
      E:\svndemo\repository\conf目录,修改svnserve.conf:
        # [general]
        # password-db = passwd
        改为:
        [general]
        password-db = passwd

      修改同目录的passwd文件,去掉下面三行的注释:
        # [users]
        # harry = harryssecret
        # sally = sallyssecret
        最后变成:
        [users]
        harry = harryssecret
        sally = sallyssecret

    运行独立服务器

      在任意目录下运行:
        svnserve -d -r E:\svndemo\repository 我们的服务器程序就已经启动了。注意不要关闭命令行窗口,关闭窗口也会把svnserve停止。

    关于客户端的使用,winxp下用的TortoiseSVN-1.6.16.21511-win32-svn-1.6.17.msi,在mac下用的SCPlugin工具
    用法,可以搜索下

    现在在mac下的xcode4.2上仍然没有弄起svn的应用,暂时先用scplugin工具

    4、如何选择Xml解析库
    参考地址:http://www.raywenderlich.com/553/how-to-chose-the-best-xml-parser-for-your-iphone-project
    另外,在cnblogs中看到关于设置TouchXml的,http://www.cnblogs.com/likwo/archive/2011/09/07/2170063.html

    文中建议:
    Which To Choose?

    Which XML parser to choose really depends on what you want to do with the parser.

        If you just want to read small XML documents, performance doesn’t matter as much with small documents. You probably want to pick something with XPath support and something that is written in Objective-C to make your job easier. So I’d recommend either TouchXML, KissXML, or GDataXML for this case.
        If you want to both read and write small XML documents, again performance doesn’t matter as much as functionality and ease of use. You probably want to pick something with XPath support, written in Objective-C, with read/write capability. So I’d recommend KissXML or GDataXML for this case.
        If you want to read extremely large XML documents, performance is the critical issue here. You’ll want to consider libxml2 SAX, TBXML, or libxml DOM for this, depending on what your exact situation is.

    What about the ones I didn’t mention?

        NSXML is a decent choice if you’re dealing with relatively small documents, and you don’t feel like adding a third party library to the SDK.
        TinyXML could be an OK choice for medium sized documents if you already have experience with the API and are comfortable with C as it ports quite easily over to the iPhone.

    I took a look at two other XML libraries during the course of this investigation (VTD-XML and Objective-XML), but I couldn’t get them working. If someone else has had more luck with these, feel free to extend the sample project to include them!

    当前我希望使用NSXML,2011-9-14.当然学习中,可以学习下TouchXml\libxml dom

  • 相关阅读:
    Keras猫狗大战二:加载模型预测单张图片
    Keras猫狗大战一:小样本4层卷积网络,74%精度
    用fastai ResNet50训练CIFAR10,85%准确度
    Windows10安装cuda、cudnn、pytorch、jupyter、fastai
    Windows10安装anaconda
    pytorch识别CIFAR10:训练ResNet-34(自定义transform,动态调整学习率,准确率提升到94.33%)
    yolov3和darknet opencv版编译安装及基本测试
    pytorch错误:RuntimeError: received 0 items of ancdata解决
    pytorch错误:Missing key(s) in state_dict、Unexpected key(s) in state_dict解决
    pytorch识别CIFAR10:训练ResNet-34(数据增强,准确率提升到92.6%)
  • 原文地址:https://www.cnblogs.com/GoGoagg/p/2169768.html
Copyright © 2020-2023  润新知