- 博客(3)
- 收藏
- 关注
原创 iOS代码片段(持续更新)
3D动画:CAKeyframeAnimation * animation; animation = [CAKeyframeAnimationanimationWithKeyPath:@"transform"]; animation.duration = 0.50; animation.delegate = self;animation.removedOnCompleti
2012-08-01 20:19:20 238
原创 android.view.WindowLeaked异常解决方法
今天遇到个问题,就是出现android.view.WindowLeaked这个异常,这个异常并没有使程序崩溃,但长此下去很难说。这个异常是指窗体泄露,解决方法就是在Activity跳转之前把附着于这个Activity上的dialog和popupwindow给释放掉。这里用到Activity的生命周期就可以了,重写onDestory()方法,在里面释放,示例如下@Overridepr
2011-11-29 15:50:17 639
原创 带输入框AlertDialog 第二次点击出现错误解决方法
错误描述:java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.贴代码吧:public void onClick(View v) {if(v.getTag().equals(
2011-11-27 14:11:48 1026 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人