-
Notifications
You must be signed in to change notification settings - Fork 0
/
3AD6A987-1971-4DF4-8093-C851D1BD8708.codesnippet
48 lines (47 loc) · 1.43 KB
/
3AD6A987-1971-4DF4-8093-C851D1BD8708.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?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>screenResolutions</string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>CodeBlock</string>
</array>
<key>IDECodeSnippetContents</key>
<string>//CGSize iOSDeviceScreenSize = [[UIScreen mainScreen] nativeBounds].size;
CGSize iOSDeviceScreenSize = [UIScreen mainScreen].currentMode.size;
switch ((int)iOSDeviceScreenSize.height) {
case 480://iPhone 1st Gen, 3G & 3GS
<#code#>
break;
case 960://iPhone 4 & 4S
<#code#>
break;
case 1136://iPhone 5, 5C & 5S
<#code#>
break;
case 1334://iPhone 6
<#code#>
break;
case 2208://iPhone 6 Plus
<#code#>
break;
default:
<#code#>
break;
}</string>
<key>IDECodeSnippetIdentifier</key>
<string>3AD6A987-1971-4DF4-8093-C851D1BD8708</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Objective-C</string>
<key>IDECodeSnippetSummary</key>
<string>If statements for different screen resolutions</string>
<key>IDECodeSnippetTitle</key>
<string>Screen Resolution</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>