To discover more possibilities in interaction design field, we try to combine different advanced device as mush as we can, to create a realistic experience, even beyond reality, and make the interaction process smoothly. An idea hexagon - Solut... Read more 16 Apr 2017 - less than 1 minute read
Using the “User-centered Interaction Design Process”, this project aim to design a meaningful system to ease the specific people’s sedentary lifestyle. Problem Sedentary lifestyle will lead people in the state of sub-health prematurely, and sit... Read more 10 Jan 2017 - 16 minute read
栈 像是一个有限功能的数组,你只可以通过’push’在栈顶添加一个新的元素,用 pop 从栈顶移除这个元素,同时 peek (一瞥)栈顶元素而不弹出(意为只能对栈顶元素执行存取操作)。 为什么我们需要这么做?在很多算法中你想将一个元素加入到一个临时列表里,与此同时你希望稍后将它们拉去出来,通常你添加或删除这些元素的顺序是被关心的问题。 栈结构给了你一个后进先出的顺序( LIFO )即 last-in first-out 。 你最后一个push进去的元素就是你在下一次第一个pop出... Read more 15 Jun 2016 - less than 1 minute read
本篇作为Swift的第四篇,主要介绍了Swift中的枚举类型,它和其它语言相比有其特殊性 本篇作为Swift的第四篇,主要简述Swift中的属性、方法 属性(Properties) Properties are variables and constants that comprise the attributes of a named type. 可存储属性(stored properties) 这些属性为每一个实例分配内存,存储其真实的值 只有类和结构体可... Read more 17 May 2016 - 4 minute read
最近的计步器App涉及异步API,我开始试图将CMPedometer的查询方法封装为一个函数,这个函数可以返回 查询方法得到的结果,方便使用。然而事实却没有这么简单,由于查询方法是异步API,因此只要调用该方法 操作就会被分配到另一个线程去做,因此当查询到结果后,调用这个查询方法的方法早已执行完毕,因此返回空, 也就是除了查询方法自带的回调block中可以取到查询结果,其他地方没法获取查询结果。 // stepsInToday永远取不到值 func queryPedometerTo... Read more 13 May 2016 - 3 minute read