UITouch & UIViewController
来源:互联网 发布:ce系统导航软件 编辑:程序博客网 时间:2024/05/21 23:37
//
- (void)loadView;//加载视图(只调用一次)
- (void)viewDidLoad;//加载视图(只调用一次)
- (void)viewWillAppear:(BOOL)animated;//视图加载之后被调用(只调用一次)
- (void)viewDidAppear:(BOOL)animated;//视图出现的时候调用
- (void)viewWillDisappear:(BOOL)animated;//视图将要消失的时候调用
- (void)viewDidDisappear:(BOOL)animated;//视图消失的时候调用
- (void)didReceiveMemoryWarning;//接受到内存警告的时候调用
//
self.userInteractionEnabled = YES;//允许用户交互
//开始触摸时
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
//
//
//
////CGPoint point = [touch locationInView:self];//获取当前视图点击的坐标
//
//
//
//
//
//
//
//
//
//
}
//移动时
{
}
//结束时
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
}
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;//取消时
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event;//晃动(摇一摇)
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event;//晃动结束
- UITouch & UIViewController
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UIViewController
- UIViewController
- UIViewController
- UIViewController
- UIViewController
- an example of maven-bundle-plugin
- shu_1243 防御导弹
- 编程是一场思维与意志的战争
- 保护模式详解
- 1045. Favorite Color Stripe
- UITouch & UIViewController
- Vert.x
- 纪念中国反毒之父—王江民
- Pick定理的几个出人意料的应用
- Naive Bayes Classifier
- android中得px、dp、dip、sp
- wamp2.5 环境搭建
- 关于MFC中修改控件字体和背景颜色的方法
- SQLite数据库基础