-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUIAlertView.codesnippet
executable file
·33 lines (31 loc) · 1.17 KB
/
UIAlertView.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
30
31
32
33
<?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>IDECodeSnippetCompletionScopes</key>
<array>
<string>CodeBlock</string>
</array>
<key>IDECodeSnippetContents</key>
<string> [UIAlertView showWithTitle:<#title#>
message:<#message#>
cancelButtonTitle:@"取消"
otherButtonTitles:@[@"确定"]
tapBlock:
^(UIAlertView *alertView, NSInteger buttonIndex) {
if ([[alertView buttonTitleAtIndex:buttonIndex] isEqualToString:@"确定"]) {
} else if ([[alertView buttonTitleAtIndex:buttonIndex] isEqualToString:@"取消"]){
}
}];</string>
<key>IDECodeSnippetIdentifier</key>
<string>5FDA5DBD-97FE-4DC0-95E9-FFA86F50EDE6</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Objective-C</string>
<key>IDECodeSnippetTitle</key>
<string>UIAlertView:A blocked Faster alertView</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>