摘要: tableview中的cell和底下的线 1 // 刷新指定行数据 2 NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:0]; 3 [tab reloadRowsAtIndexPaths:[NSArray arrayWi 阅读全文
posted @ 2016-03-02 11:26 骗人的孩纸 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 定义一个继承自UIview的类(即我们要移动的视图) BallView.h 1 @interface BallView : UIView 2 { 3 CGPoint startPoint; 4 } 5 @end BallView.m 1 @implementation BallView 2 3 - 阅读全文
posted @ 2016-02-23 10:27 骗人的孩纸 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 1 //开始触摸 2 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 3 { 4 NSLog(@"你触摸了屏幕"); 5 } 6 //移动 7 - (void)touchesMoved:(NSSet *)touches 阅读全文
posted @ 2016-02-22 16:27 骗人的孩纸 阅读(852) 评论(0) 推荐(0) 编辑