2018-07-23

苹果屏幕尺寸,像素,分辨率原文文档介绍地址:

https://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions


Objective-C 中 block块 的使用

http://fuckingblocksyntax.com

As a local variable:

returnType (^blockName)(parameterTypes) = ^returnType(parameters) {...};

As a property:

@property (nonatomic, copy, nullability) returnType (^blockName)(parameterTypes);

As a method parameter:

- (void)someMethodThatTakesABlock:(returnType (^nullability)(parameterTypes))blockName;

As an argument to a method call:

[someObject someMethodThatTakesABlock:^returnType (parameters) {...}];

As a typedef:

typedef returnType (^TypeName)(parameterTypes);

TypeName blockName = ^returnType(parameters) {...};

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • It is a common sense that, children's health problem has ...
    泥巴叔叔阅读 169评论 0 0
  • 对于java中的思考的方向,1必须要看前端的页面,对于前端的页面基本的逻辑,如果能理解最好,不理解也要知道几点。 ...
    神尤鲁道夫阅读 842评论 0 0
  • It's Monday. Pa had brought four fat ducks, and he said h...
    Mr_Oldman阅读 109评论 0 0
  • 后续   前面介绍了用户归档+ListView控件制作报表的步骤,这篇是前面文章的后续,主要是在后面的实际应用中,...
    墨II白阅读 1,257评论 0 51
  • 到今天,已经不知道日记本在抽屉里躺了几个月了。那座城市的印记也渐渐淡了。公司,公交,出租屋,往返于两个地点,越来越...
    云飘走了阅读 213评论 0 1