- 博客(3)
- 资源 (1)
- 收藏
- 关注
转载 iOS使用CoreMotion
现在网上介绍的iOS摇一摇功能,基本是以借助系统的ShakeToEdit功能来实现,什么是ShakeToEdit?看下图应该就能懂: 怎么实现?请看以下代码: //ViewController 加入以下两方法 -(BOOL)canBecomeFirstResponder { //让当前controller可以成为firstResponde
2015-01-22 11:32:16 556
原创 iOS 本地推送
1、增加一个本地推送 //设置20秒之后 NSDate *date = [NSDate dateWithTimeIntervalSinceNow:20]; //chuagjian一个本地推送 UILocalNotification *noti = [[[UILocalNotification alloc] init] autorelease]; if (noti)
2015-01-20 14:45:19 508
转载 UIActionSheet取消按钮触摸被遮
UIActionSheet最后一个按钮没响应,一般是cancelButton,要稍微向上偏移一点才可以。 不过这不是常态,几乎没多少人碰到这个问题,这是在特定情况下才会发生,这个场景就是试用了UITabBar的时候才有。 参考:http://stackoverflow.com/questions/2096852/iphone-weird-bug-between-uiactionsheet-an
2015-01-09 10:54:43 544
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人