前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Objective-C 学习记录--toches、Motion/Size/Rect/Point/CGFloat/protocol

Objective-C 学习记录--toches、Motion/Size/Rect/Point/CGFloat/protocol

作者头像
叉叉敌
发布2019-06-26 14:26:35
3170
发布2019-06-26 14:26:35
举报
文章被收录于专栏:ChasaysChasays

Objective-C 学习记录--toches、Motion/Size/Rect/Point/CGFloat/protocol

- (void)touchesBegan

touchesEnd

touchesCancelled

touchesMoved

//代表的是手指在屏幕上的动作,开始 结束 取消 移动

//还有就是代表摇动的方法

-(void)motionBegan

motionEnd

motionCancelled

隐藏键盘

resignFirstResponser

弹出键盘

becomeFirstResponser

//获取应用程序的Documents目录

NSSearch *forDirectories = [NSDocumentDirectory NSUserDomainMesk , InDomain, YES];

@property (nonatomic) UIViewControllerMode contentMode;

@property (nonatomic)UIViewContentModeScale(TOFillAspectFill, AspectFit);

//ToFill代表的是填充

//AspectFill 内容填充 AspectFit 内容适应!

CGSize和NSSize

CGPoint和NSPointCGRect和NSRect

CGFloat和NSFloat

都是一样的用法~

//@protocol

@protocol Foo <other, NSObject>//应用此协议就必须实现的

- (void)something;

@optional//可以实现也可以不是实现

```

@required

```

@end

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2015年01月11日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Objective-C 学习记录--toches、Motion/Size/Rect/Point/CGFloat/protocol
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档