2014年8月18日

摘要: 看过一些蓝牙App的事例,大体上对蓝牙的连接过程进行了了解。但是开始真正自己写一个小的BLE程序的时候就举步维艰了。那些模棱两可的概念在头脑中瞬间就蒸发了,所以还是决定从最基本的蓝牙连接过程进行。这里所说的蓝牙是针对 bluetooth 4.0的。 第一步就是去看官方的关于蓝牙框架的文档,即C... 阅读全文
posted @ 2014-08-18 20:39 SCaptain 阅读(10960) 评论(4) 推荐(1) 编辑
摘要: Except that on android you can bypass the pairing dialog if you know the PIN in advance through a different channel.EtanOn 06.02.2013, at 10:09, "Andr... 阅读全文
posted @ 2014-08-18 18:35 SCaptain 阅读(476) 评论(0) 推荐(0) 编辑

2014年8月16日

摘要: Client–server modelFrom Wikipedia, the free encyclopediaThe client–server model of computing is a distributed application structure that partitions ta... 阅读全文
posted @ 2014-08-16 09:59 SCaptain 阅读(470) 评论(0) 推荐(0) 编辑

2014年7月29日

摘要: 在oc中我们通过-(CardMatchingGame *)game{ if(!_game) _game=[[CardMatchingGame alloc] initWithCardCount:[self.cardButtons count] usingDeck:[self createDeck... 阅读全文
posted @ 2014-07-29 12:08 SCaptain 阅读(841) 评论(0) 推荐(0) 编辑

2014年7月28日

摘要: 以前的编程经验告诉我们判断一个对象是否为空或者是否实例化可以这样if(someObject == nil){ //do something}else{}但是在Swift中这样是不行的,然后我在Stackoverflow上找到了答案http://stackoverflow.com/questions... 阅读全文
posted @ 2014-07-28 21:02 SCaptain 阅读(2710) 评论(0) 推荐(0) 编辑

2014年7月16日

摘要: 当你在使用Swift时会发现一些常用的函数不!见!了!比如String: s.count() s.contains()Array: a.indexOfObeject(t:)我看网上有人说用extension Array的方法调用NSArray的indexOfObject来实现extension A... 阅读全文
posted @ 2014-07-16 22:19 SCaptain 阅读(692) 评论(1) 推荐(0) 编辑
摘要:  这两天在学习Stanford出品的iOS7的课程,这个课程去年也看过,但是看到第3课就不行了,满篇的OC,把人都搞晕了。这段时间因为要写个iOS的App,正好赶上了Swift问世,所以趁着这股劲继续学习iOS的开发,把网上的一些视频关于Swift的都看过和做过了,然后选择看Stanford出品... 阅读全文
posted @ 2014-07-16 20:22 SCaptain 阅读(2100) 评论(0) 推荐(0) 编辑

导航