Too much syntax, directly on the code
Code section: (Attached)
Suggest go straight to stupid programming Pinterest Watch: Http://www.jianshu.com/writer#/notebooks/1370039/notes/1644619/preview
#这是一级标题
# #这是二级标题
This is a split line.
***
* This is italic *
* * This is bold * *
***
This is an ordered list
1. I
2. Yes
* Medium
-State
* People
This is an unordered list
* This is
* Unordered
* List
This is still an unordered list
-No
-Order
-Column
-Table
***
> here is the quote
I used your code-(cgsize) sizewithstring: (NSString *) string font: (Uifont *) font maxSize: (cgsize) maxsize{};
Here is the code
'-(Cgsize) sizewithstring: (NSString *) string font: (Uifont *) font maxSize: (cgsize) MaxSize '
`{
Nsdictionary *dict = @{nsfontattributename:font};
Cgsize size = [string Boundingrectwithsize:maxsize options:nsstringdrawinguseslinefragmentorigin attributes:dict Context:nil].size;
return size;
}`
To insert a picture here
####** I'm going to insert a picture here * *
! [] (Http://mood.oao-m.cn/Mood/default/icon.png)
# # #这里我要插入超链接
[Baidu] (www.baidu.com)
Stupid programming official Weibo
[/2728581591/profile?topnav=1&wvr=6] (http://weibo.com)
More syntax See: markdown official website
http://www.appinn.com/markdown/
[/markdown/] (http://www.appinn.com/markdown/)
:
This is a headline.
This is level two heading.
This is a split line.
This is italic.
It's bold.
This is an ordered list
- I
- Is
- In
- Country
- People
This is an unordered list
This is still an unordered list
Here is the reference
I used your code-(cgsize) sizewithstring: (nsstring ) string font: (uifont ) font maxSize: (cgsize) maxsize{};
Here is the code
- (CGSize)sizeWithString:(NSString *)string font:(UIFont *)font maxSize:(CGSize)maxSize
{ NSDictionary *dict = @{NSFontAttributeName : font}; CGSize size = [string boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:dict context:nil].size; return size;}
To insert a picture here
I'm going to insert a picture here
I'm going to insert a hyperlink here.
Baidu
Stupid programming official Weibo
/2728581591/profile?topnav=1&wvr=6
More syntax See: markdown official website
http://www.appinn.com/markdown/
/markdown/
Markdown Syntax Usage