A simple maximizable iOS view, with Interface Builder integration
Simply add the BTMaximizableView Objective-C class into an existing project. Views can be generated programatically, or through Interface Builder and configured accordingly.
Make sure that UIViewControllerBasedStatusBarAppearance
is set to NO
in your plist file.
- Drag
BTMaximizableViewView.h
andBTMaximizableView.m
into your project directory. - Go to
[project] -> [target] -> Build Phases -> Compile Sources
and ensureBTMaximizableView.m
is listed. - Go back to Interface Builder and drag a View object from the Object Library into the desired view controller
- Under the Identity Inspector, change the class type to
BTMaximizableView
- Add the following to the diesired view controller header:
#import "BTMaximizableView.h"
- Using the Assistant Editor, hold down control and add references to the maximizable view and the trigger (typically, a button IBAction)
- Call the
toggleMaxMin
function wherever you would like to invoke maximizing or minimizing the view - To have the status bar automatically change depending on the background color of your maximizable view, open your info.plist file and create a new key
View controller-based status bar appearance
and set the value toNO
- Support for screen rotation without total redraw
- Bug fixes
Licensed under the MIT License.