Skip to content

erica/useful-things

Repository files navigation

#useful-things# [Not to be confused with "needful things" (see King, Stephen)]

  • useful pack: app store safe and general purpose
  • less useful pack: fun stuff
  • handy pack: building demos, assist with dev/testing
  • app store unsafe pack: for in-house work only
  • constraint minipack: 85% of what you need in one short .h/.m pair
  • informit: items from write-ups

Airplay Motion Effects Enabler Enable motion effects over AirPlay. Not App Store safe. Use for creating demos (or in my case, book examples.)

Blocking Animations Stacking solution that avoids nested completion blocks.

Constraint MiniPack Although you'll be best served grabbing the latest version from my Auto Layout repo, I've put a copy here for easy reference.

Dictation Helper See Speech and Dictation

Drag In View Using damped harmonics to create a draggable drawer. Write-up can be found here.

GIF Image View This is a fairly simple implementation that assumes each GIF frame is linearly spaced out. Use initWithGIFImagePath: or loadGIFFromPath:.

Guided Tour What it says on the wrapper. Create a tour, add stages, and let 'er rip. Read the post about this on InformIT.

- (void) setupTour
{
    tour = [[GuidedTour alloc] init];
    tour.delegate = self;
    tour.requestedContentSize = [NSValue valueWithCGSize:CGSizeMake(400, 400)];

    GuidedTourStage *stage;    
    stage = [[GuidedTourStage alloc] init];
    stage.header = @"Welcome";
    stage.body = @"Intro Text";
    stage.image = [UIImage imageNamed:@"flowers"];
    [tour addStage:stage];
    
    stage = [[GuidedTourStage alloc] init];
    stage.header = @"Stage 1";
    stage.body = @"Text that talks about Stage 1 in an interesting fashion";
    stage.desiredView = button;
    [tour addStage:stage];
    
    stage = [[GuidedTourStage alloc] init];
    stage.header = @"Thank you!";
    stage.body = @"Please enjoy the app.";
    stage.gifPath = [[NSBundle mainBundle] pathForResource:@"clpURch" ofType:@"gif"];
    stage.nextButtonText = @"Done";
    [tour addStage:stage];
}

Handy Pack Useful items for testing and development

Intrinsic Transitions Part 1 Part 2

Insultomatic Returns a random Shakespearian string. Adapted from Chris Seidel's web page

Movie Maker Use blocks to build AVFoundation movie frames. Here's the InformIT writeup.

ScreenShot

PDF Image Loads vector PDFs into sized UIImages

Round Image View Another "what it says on the label" class. Circular image views with optional borders.

Speech and Dictation: Utilities for speaking and listening. The speaking stuff is App Store safe. The dictation classes are not.

[SpeechHelper speakModalString:@"Please say something"];
[[DictationHelper sharedInstance] dictateWithDuration:5.0f 
    completion:^(NSString *dictationString) {
        if (dictationString)
            NSLog(@"You said:'%@'", dictationString);
        else
            NSLog(@"No response");}];

Temporary Kit Items that will be moved to other repositories because they're for books / projects that aren't yet public

Touch Kit Add touch points to your apps for creating demos. See my write up over on InformIT for details.

Triggered Taps Deliberate touches. See my write up on InformIT for details.

View Dragging From my Auto Layout book, adds constraint-based view dragging. This version is tweaked to remove constraints after moves because I needed to use it to demonstrate view dynamics. For use with the Drag In View.

##Books##

##Various##

About

Not to be confused with "needful things" (see King, Stephen)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published