zhou的博客.

测试下Hexo

字数统计: 496阅读时长: 2 min
2017/04/17 Share

#你好
这是只是一个测试。。。

I like Google



段落

这是一个段落

这是第二个段落

标题


##这也是一个段落H4##

这又是一个段落H5

引用
这是一个引用


列表


* 可以使用‘*’作为标记 + 也可以使用'+' - 或者‘-’
  1. 第一层
  • 1-1
  • 1-2
  1. 第二层
    1. 2-1
    2. 2-2

05. 可以使用 : 数字. 来取消显示为列表

代码

//block的实现方法(向表中添加一调信息,添加成功后将这调信息insert到tableView的第一个单元格)
__weak NSMutableArray *weakarray = _arr;
__weak UITableView *weaktable = table;
__weak UIActivityIndicatorView *weakActivity = Activity;
AddVc = [[AddViewController alloc] init];
AddVc.block = ^(Patient *patient) {
//开始旋转
__strong UIActivityIndicatorView *strongActivity = weakActivity;
[strongActivity startAnimating];
NSLog(@”patient:%@”,patient.leftOne);
//向数据库中添加一条信息
int result = [DBManger inserPatient:patient table:PatientsSqlite];
__strong NSMutableArray *strongarray = weakarray;
__strong UITableView *strongtable = weaktable;
NSLog(@”strongarray:%ld”,strongarray.count);
if (result) {
//停止旋转
[strongActivity stopAnimating];
//向table中添加一个cell
NSIndexPath *refreshCell = [NSIndexPath indexPathForRow:0 inSection:0];
NSArray *insertIndeaPath = [NSArray arrayWithObjects:refreshCell, nil];
[strongarray insertObject:patient atIndex:0];
NSLog(@”%lu”,(unsigned long)strongarray.count);
[strongtable insertRowsAtIndexPaths:insertIndeaPath withRowAnimation:UITableViewRowAnimationAutomatic];

    }
};

分割线




超链接

百度

icon.png

http://www.baidu.com
123@foxmail.com

图像

github

强调

这是用 斜体 来演示 的_斜体_

加粗 加粗

转义

这是用来 *斜体 * 的 _ 斜体 _

删除线

删除线

代码块

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//block的实现方法(向表中添加一调信息,添加成功后将这调信息insert到tableView的第一个单元格)
__weak NSMutableArray *weakarray = _arr;
__weak UITableView *weaktable = table;
__weak UIActivityIndicatorView *weakActivity = Activity;
AddVc = [[AddViewController alloc] init];
AddVc.block = ^(Patient *patient) {
//开始旋转
__strong UIActivityIndicatorView *strongActivity = weakActivity;
[strongActivity startAnimating];
NSLog(@"patient:%@",patient.leftOne);
//向数据库中添加一条信息
int result = [DBManger inserPatient:patient table:PatientsSqlite];
__strong NSMutableArray *strongarray = weakarray;
__strong UITableView *strongtable = weaktable;
NSLog(@"strongarray:%ld",strongarray.count);
if (result) {
//停止旋转
[strongActivity stopAnimating];
//向table中添加一个cell
NSIndexPath *refreshCell = [NSIndexPath indexPathForRow:0 inSection:0];
NSArray *insertIndeaPath = [NSArray arrayWithObjects:refreshCell, nil];
[strongarray insertObject:patient atIndex:0];
NSLog(@"%lu",(unsigned long)strongarray.count);
[strongtable insertRowsAtIndexPaths:insertIndeaPath withRowAnimation:UITableViewRowAnimationAutomatic];

}
};


表格

name | age | sex | height | hight
—- | —
LearnShare | 12 | meal | 120 | 173
Mike | 34 | femeal | 140 | 189

CATALOG
  1. 1. 这是一个段落
    1. 1.1. 这是第二个段落
      1. 1.1.0.1. 这又是一个段落H5
      2. 1.1.0.2.