This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//设置padding | |
-(void) padding{ | |
//padding大小(top,left,bottom,right) | |
UIEdgeInsets padding = UIEdgeInsetsMake(0, 15, 0, 15); | |
_textView.contentInset = padding; | |
CGRect frame = _textView.frame; | |
// must change frame before bounds because the text wrap is reformatted based on frame, don't include the top and bottom insets | |
CGRect insetFrame = UIEdgeInsetsInsetRect(frame, UIEdgeInsetsMake(0, padding.left, 0, padding.right)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
originTextArray=[NSMutableArray arrayWithCapacity:0]; | |
transTextArray=[NSMutableArray arrayWithCapacity:0]; | |
NSString *rex=@"<[^>]*?>([^<]*)"; | |
NSArray *r=[self.item.summary arrayOfCaptureComponentsMatchedByRegex:rex]; | |
BOOL judge=YES; | |
for(NSArray *tmp in r){ | |
NSString *content=[tmp objectAtIndex:1]; | |
//过滤连续标签中间的空内容 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.pbxproj -crlf -diff -merge |
NewerOlder