ios
cactusz
dev
展开
-
UITableViewCell的4种显示格式
typedef NS_ENUM(NSInteger, UITableViewCellStyle) { UITableViewCellStyleDefault, // Simple cell with text label and optional image view (behavior of UITableViewCell in iPhoneOS 2.x) UITableVi原创 2017-07-06 16:24:12 · 273 阅读 · 0 评论 -
Block开发浅谈
一、block的定义及优点 Apple文档说: A block is an anonymous inline collection of code, and sometimes also called a "closure". Block是一个C级别的语法以及运行时的一个特性,和标准C中的函数(函数指针)类似,但是其运行需要编译器和运行时支持。从ios4.0,Mac_OSX v10.6开始就原创 2017-07-06 16:24:57 · 239 阅读 · 0 评论