Floating UI component with navigation bar for iPhone
Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CQMFloatingController.xcodeproj
CQMFloatingController
CQMFloatingControllerTests Initial Commit May 14, 2012
.gitignore Add .gitignore Jul 13, 2013
Default-568h@2x.png Enable wide screen support of demo project Jul 13, 2013
LICENSE.txt
README.markdown

README.markdown

CQMFloatingController

Overview

CQMFloatingController is a floating UI component with navigation bar. You can push/pop a content view controller on it.

This component is ported from Calqum, customizable calculator for iPhone.

Features

  • The appearance looks good in UIKit standard
  • Customizable frame color

Screenshots

Screenshot0 Screenshot1

How to Use

  1. Add all files in CQMFloatingController/Classes to your project
  2. Write code as below:
// Import a required class
#import "CQMFloatingController.h"

- (void)show {
    // Prepare content view controller
    SomeViewController *viewController = [[[SomeViewController alloc] init] autorelease];

    // Get shared floating controller, and customize if needed
    CQMFloatingController *floatingController = [CQMFloatingController sharedFloatingController];
    [floatingController setFrameColor:[UIColor orangeColor]];

    // Show floating controller with content
    UIWindow *window = [[UIApplication sharedApplication] keyWindow];
    UIView *rootView = [window.rootViewController view];
    [floatingController showInView:rootView
         withContentViewController:viewController
                          animated:YES];
}

License

MIT License. See LICENSE.txt for more information.