Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added imageView codesnippet

  • Loading branch information...
commit 3dfdb7362da23d1377ad5e8901f7287eb93fdb07 1 parent 5ef7727
@jaydee3 authored
Showing with 32 additions and 0 deletions.
  1. +6 −0 README.md
  2. +26 −0 imageView.codesnippet
View
6 README.md
@@ -45,6 +45,12 @@ A For loop incrementing a local variable
<#statements#>
}
+**imageView.codesnippet** (Create an imageView)
+Shortcut: `iv`
+Inits a new imageView with an image via imageNamed.
+
+ [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"<#imageName#>"]]
+
**importFramework.codesnippet** (Import Framework)
Shortcut: `imp2`
import a framework
View
26 imageView.codesnippet
@@ -0,0 +1,26 @@
+<?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>iv</string>
+ <key>IDECodeSnippetCompletionScopes</key>
+ <array>
+ <string>CodeExpression</string>
+ </array>
+ <key>IDECodeSnippetContents</key>
+ <string>[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"&lt;#imageName#&gt;"]]</string>
+ <key>IDECodeSnippetIdentifier</key>
+ <string>605168BB-991A-482E-8004-BE645E3F05AA</string>
+ <key>IDECodeSnippetLanguage</key>
+ <string>Xcode.SourceCodeLanguage.Objective-C</string>
+ <key>IDECodeSnippetSummary</key>
+ <string>Inits a new imageView with an image via imageNamed.</string>
+ <key>IDECodeSnippetTitle</key>
+ <string>Create an imageView</string>
+ <key>IDECodeSnippetUserSnippet</key>
+ <true/>
+ <key>IDECodeSnippetVersion</key>
+ <integer>0</integer>
+</dict>
+</plist>
Please sign in to comment.
Something went wrong with that request. Please try again.