会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
沙影无痕
博客园
首页
新随笔
联系
订阅
管理
2012年11月19日
ios 任意移动自定义控件
摘要: 先在.h里面定义一个变量CGPoint startPoint;然后在.m里面加入下面两个方法:- (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event{ //保存触摸起始点位置 CGPoint point=[[touch...
阅读全文
posted @ 2012-11-19 15:53 沙影无痕
阅读(187)
评论(0)
推荐(0)
公告