摘要: 微信的摇一摇是怎么实现的~发现原来 ios本身就支持在 UIResponder中存在这么一套方法- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);- (void)motionCa 阅读全文
posted @ 2013-04-08 17:25 GreyWolf 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 在这篇文章中我们将介绍 Windows Phone 的摇晃功能。让我们来看如何实现。Step 1: 下载摇晃手势开发库 http://create.msdn.com/en-us/education/catalog/article/Recipe_Shake_Gesture_LibraryStep 2: 解压后进入 ShakeGesture 的 debug 文件夹Step 3: 创建一个 Sliverlight for Windows Phone 项目Step 4: 将 ShakeGestures dll 添加到项目中Step 5: 在 MainPage.xaml 中添加 TextBlock1&l 阅读全文
posted @ 2013-04-08 17:24 GreyWolf 阅读(233) 评论(0) 推荐(0) 编辑