博客美化测试
查看代码show the code
// @property = iVar + setter + getter// 默认是atomic原子的 读写线程安全但耗性能 一般设置nonatomic是非原子的 节省开销
//基本数据类型
@property (nonatomic,assign) int age;
@property (nonatomic,assign) float distance;
@property (nonatomic,assign) double aValue;
@property (nonatomic,assign) NSInteger count1;
@property (nonatomic,assign) NSUInteger count2;
@property (nonatomic,assign) CGFloat number1;
//枚举类型
@property (nonatomic,assign) NSTextAlignment align;
//结构体
@property (nonatomic,assign) CGSize size;
@property (nonatomic,assign) CGRect frame;
//代理委托
@property (nonatomic,assign) idassignDelegate;
@property (nonatomic,weak) idweakDelegate;
//弱引用属性
@property (nonatomic,weak) ShareManager *weakManager;
//IB拉线视图
@property (nonatomic,weak) IBOutlet UIView *testView;
//字符串
@property (nonatomic,copy) NSString *name;
//block/闭包
@property (nonatomic,copy) dispatch_block_t block;
//强引用对象
@property (nonatomic,strong) NSArray *arr;
@property (nonatomic,strong) NSMutableArray *arrM;
@property (nonatomic,strong) NSDictionary *dic;
@property (nonatomic,strong) NSMutableArray *dicM;
@property (nonatomic,strong) ShareManager *strongManager;
//默认是readwrite 对于外部引用是可读可写 设置readonly是只读
@property (nonatomic,strong,readonly) ShareManager *strongManager2;
| 动画类型 | 代码示例 |
|---|---|
| 最为常见的block动画 | |
Codepen代码嵌入
尝试一下 Carbon代码片段的展示
flow st=>start: Start op=>operation: Your Operation cond=>condition: Yes or No? e=>end: over st->op->cond cond(yes)->e cond(no)->op
mermaid graph LR; A[Import] -->B[Tidy] B -->C{Understand} C -->D[Transform] C -->E[Vishualise] C -->F[Model] Understand -->G[Communicate]
```sequence
Title: Here is title
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
```
本文来自博客园,作者:CoderWGB,转载请注明原文链接:https://www.cnblogs.com/wgb1234/p/12496422.html

浙公网安备 33010602011771号