-
Notifications
You must be signed in to change notification settings - Fork 1
/
7102392A-4BAD-46A5-8AA0-1874B7A3CC38.codesnippet
29 lines (29 loc) · 1.26 KB
/
7102392A-4BAD-46A5-8AA0-1874B7A3CC38.codesnippet
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionPrefix</key>
<string>csAttributedString</string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>CodeBlock</string>
</array>
<key>IDECodeSnippetContents</key>
<string>NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:<#label.text#>];
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
[paragraphStyle setLineSpacing:<#4.0#>];
[attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, [<#label.text#> length])];
<#label#>.attributedText = attributedString;
[detailLabel sizeToFit];</string>
<key>IDECodeSnippetIdentifier</key>
<string>7102392A-4BAD-46A5-8AA0-1874B7A3CC38</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Objective-C</string>
<key>IDECodeSnippetTitle</key>
<string>iOS7 Attributed String</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>