Skip to content

Instantly share code, notes, and snippets.

# Mac OS X
*.DS_Store
# Xcode
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
*.xcuserstate
project.xcworkspace/
@stephsharp
stephsharp / LoadingView.h
Created July 28, 2013 23:40
Simple iOS loading view
//
// LoadingView.h
// Created by Stephanie Sharp on 26/05/13.
//
// http://www.sitepoint.com/all-purpose-loading-view-for-ios/
// http://www.cocoawithlove.com/2009/04/showing-message-over-iphone-keyboard.html
#import <UIKit/UIKit.h>
@interface LoadingView : UIView
@stephsharp
stephsharp / ReadFromPList.m
Last active December 18, 2015 11:58
Snippet to read data from a property list
// Helpful tutorial:
// http://www.theappcodeblog.com/2011/05/30/property-list-tutorial-using-plist-to-store-user-data/
// Get property list from main bundle
NSString * plistPath = [[NSBundle mainBundle] pathForResource:@"PListName" ofType:@"plist"];
// Read property list into memory as an NSData object
NSData * plistXML = [[NSFileManager defaultManager] contentsAtPath:plistPath];
NSString * errorDesc = nil;
NSPropertyListFormat format;
@stephsharp
stephsharp / iOS5EmbedSegue.h
Created June 14, 2013 01:35
Embed Segue for iOS5
//
// iOS5EmbedSegue.h
// Created by Stephanie Sharp on 2/05/13.
//
#import <UIKit/UIKit.h>
@interface iOS5EmbedSegue : UIStoryboardSegue
@property (nonatomic, strong) UIView * containerView;