- 博客(3)
- 收藏
- 关注
转载 关于tabview的一些小问题
tableview中的cell和底下的线 1 // 刷新指定行数据 2 NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:0]; 3 [tab reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimati...
2016-03-02 11:26:00 89
转载 可以拖动的View
定义一个继承自UIview的类(即我们要移动的视图) BallView.h 1 @interface BallView : UIView 2 { 3 CGPoint startPoint; 4 } 5 @end BallView.m 1 @implementation BallView 2 3 - (void)touchesBegan:(N...
2016-02-23 10:27:00 52
转载 iOS事件(触摸,移动,晃动)
1 //开始触摸 2 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 3 { 4 NSLog(@"你触摸了屏幕"); 5 } 6 //移动 7 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)even...
2016-02-22 16:27:00 88
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人