Skip to content
A Cocoa Touch library that renders briefs and responds to control events.
Objective-C C
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
BriefsUITests
.gitignore
.gitmodules
BFActorView.h
BFActorView.m
BFDispatch.h
BFPresentationDispatch.h
BFPresentationDispatch.m
BFRootView.h
BFRootView.m
BFSceneView.h
BFSceneView.m
BFSceneViewController.h
BFSceneViewController.m
BFViewUtilityParser.h
BFViewUtilityParser.m
LICENSE
README.markdown
SynthesizeSingleton.h

README.markdown

Briefs-sharedUI

This is part of the Briefs Framework. (@briefsapp on Twitter)

When used in tandem with the Briefs-data project, one can create an iPhone app that can launch .brieflist files and respond to touch input.

How to Launch a Brief on App startup

To auto-launch a brief (called abrief.brieflist below) that is part of the app resources bundle, use the following code for the applicationDidFinishLaunching: method in your App Delegate:

- (void)applicationDidFinishLaunching:(UIApplication *)application 
{
    // Hide the status bar
    [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

    // Load the brief into memory
    NSString *path = [[NSBundle mainBundle] pathForResource:@"aBrief" ofType:@"brieflist"];
    BFSceneManager *manager = [[BFSceneManager alloc] initWithPathToDictionary:path];

    // Construct the view controller and
    // initialize the dispatch singleton
    BFSceneViewController *controller = [[BFSceneViewController alloc] initWithSceneManager:manager];
    [[BFPresentationDispatch sharedBFPresentationDispatch] setViewController:controller]; 

    // add the brief view to the window
    [window addSubview:[controller view]];
    [window makeKeyAndVisible];

    // Cleanup
    [manager release];
    [path release];

}

Contact

This framework is currently a work in progress. Please contact me with any questions about future status and feature requests.

rob@robrhyne.com

Something went wrong with that request. Please try again.