A bunch of snippets for Xcode
To install snippets just copy *.codesnippet files into folder:
~/Library/Developer/Xcode/UserData/CodeSnippets/
In Xcode, open a workspace and toggle the right sidebar to be visible. On the bottom, there is a panel with four icons in the header. Click on the { } icon to open the Code Snippets Library.
- Animation Block -
animBlock - Animation Block with Options -
animFullBlock - Block: Method -
blockMethod - Deprecated -
deprecated - DLog #define Statements -
DLogState - Method Documentation Comment -
methodDoc - GDC: Dispatch Async -
dispatchAsync - GDC: Dispatch Sync -
dispatchSync - Method -
method - Notification: Add Observer -
notificationAddObserver - Notification: Post -
notificationPost - Notification: Post with User Info -
notificationPostWithUserinfo - Notification: Remove Observer -
notificationRemove - NSAssert -
assert - NSAssert for Blocks -
assertBlocks - NSString with format -
strFormat - Pragma mark -
pragmaMark - Property NSArray -
pArray - Property Class -
pClass - Property NSDictionary -
pDict - Property NSNumber -
pNumber - Property String -
pString - Singleton Instance -
singleton - Strongself -
strongself - UDID Generator -
udidCreate - UIImage imageNamed: -
inamed - UITableView Delegates -
tableViewDel - Weakself -
weakself
Thanks to @mneorr and his project snippie in order to generate the cheatsheet and the readable_snippets folder.
Thanks to @schukin and his project Fucking Block Syntax Autocompletion.
All the snippets are released under a MIT-License. See License file for more info.
- Javi Lorbada
- Follow @javi_lorbada on twitter
- http://javilorbada.me/