[已解决]Swift代码调用类的static变量出错:Static member cannot be used on instance of type
crifan 9年前 (2015-11-26) 6175浏览 1评论
代码: class ChatViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, MessageDelegate { // var chat...
在路上on the way - 走别人没走过的路,让别人有路可走
crifan 9年前 (2015-11-26) 6175浏览 1评论
代码: class ChatViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, MessageDelegate { // var chat...
crifan 9年前 (2015-11-26) 3677浏览 0评论
无意间发现的: iOS Development | Singleton Swift 好像很简单的样子。 Swift中的iOS设计模式(一) – 程序员说 hpique/SwiftSingleton · GitHub Testing Singlet...
crifan 9年前 (2015-11-26) 3545浏览 0评论
折腾: [已解决]SwiftXMPP代码中发送消息失败:对方收不到消息 期间,搞懂错误原因了。 然后需要去: 需要获得对于Storyboard中的,已有的某个ViewController 然后去设置其下某个属性值 搜: swift stor...
crifan 9年前 (2015-11-26) 2772浏览 0评论
折腾SwiftXMPP的代码时,在模拟器中发送消息 但是对方,已经登陆的Mac的Aduim客户端中,却收不到消息 不过: 客户端发送消息,代码中是可以收到的: 调试期间,发现是: 原来是: 发送消息的to的值,设置有误: to的值...
crifan 9年前 (2015-11-26) 3133浏览 0评论
折腾: [已解决]ATOM编辑器中安装XML格式化工具 中,想要安装xml的包 但是打开: Command Palette 后,输入Package install 却没有出现包管理器: 所以要去搞懂: mac下的atom,如何安装包管理...
crifan 9年前 (2015-11-26) 7148浏览 0评论
ATOM编辑器中,已有XML的字符串: 需要格式化,方便查看。 搜: ATOM editor xml formatter 参考: xml-formatter Auto indent code in Atom editor –...
crifan 9年前 (2015-11-26) 4214浏览 0评论
swift的XMPP库SwiftXMPP中的代码: func goOnline() { print("goOnline") var presence = XMPPPresence(t...
crifan 9年前 (2015-11-26) 6205浏览 0评论
某个服务器,其中运行了某个服务,比如Openfire, 结果时不时的,偶尔就会被干掉 后来听说,好像是由于一个服务器的服务导致的: OOM Killer 其中: Out of Memory==OOM 即: 当系统发现内存不够用的时候,就会去杀...
crifan 9年前 (2015-11-26) 5161浏览 0评论
[背景] 访问: http://192.168.1.110:7070/http-bind/ 出错: HTTP ERROR: 400 Problem accessing /http-bind/. Reason: Bad Request ...
crifan 9年前 (2015-11-26) 3383浏览 0评论
折腾: [已解决]swift XMPP调试:没有执行到didReceivePresence和 didReceiveMessage 期间,代码: func xmppStream(sender: XMPPStream!, didNotAuth...