Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krzysztofzablocki/SFContainerViewController
UIViewControllers containment predating Apple implementation. Works in both 4.x and 5.x iOS, no memory or hierarchy issues.
https://github.com/krzysztofzablocki/SFContainerViewController
Last synced: about 1 month ago
JSON representation
UIViewControllers containment predating Apple implementation. Works in both 4.x and 5.x iOS, no memory or hierarchy issues.
- Host: GitHub
- URL: https://github.com/krzysztofzablocki/SFContainerViewController
- Owner: krzysztofzablocki
- License: other
- Created: 2012-02-24T14:58:59.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-10-31T06:21:03.000Z (about 10 years ago)
- Last Synced: 2024-10-29T12:52:50.254Z (about 1 month ago)
- Language: Objective-C
- Homepage: http://twitter.com/merowing_
- Size: 181 KB
- Stars: 82
- Watchers: 5
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - SFContainerViewController - UIViewControllers containment predating Apple implementation. Works in both 4.x and 5.x iOS, no memory or hierarchy issues. (etc)
- awesome - SFContainerViewController - UIViewControllers containment predating Apple implementation. Works in both 4.x and 5.x iOS, no memory or hierarchy issues. (etc)
README
### UPDATE: I'm no longer using SFContainerViewControllers in any project, it was created way before there was native view controller contaiment in iOS, it's been a long time since Apple added it as part of the system, you should use Apple's implementation.
Purpose
--------------SFContainerViewController is a UIViewController subclass that can have multiple UIViewController children. No memory problems, if this controller is not visible, it will unload its view and all of his children views.
From the children view you can use freely navigationController, parentViewController ( will point to container itself ), interfaceOrientation.[Follow me on twitter][1]
Supported OS & SDK Versions
-----------------------------* iOS 4.0 (Xcode 4.3, Apple LLVM compiler 3.1)
ARC Compatibility
------------------SFContainerViewController automatically works with both ARC and non-ARC projects through conditional compilation. There is no need to exclude SFContainerViewController files from the ARC validation process, or to convert CCNode+SFGestureRecognizers using the ARC conversion tool.
Installation
--------------To use the SFContainerViewController class in an app, just drag the class files (demo files and assets are not needed) into your project.
Just subclass from SFContainerViewController, set viewControllers to your selected controllers and implement loadView so that you can have your own view to layout your controllers.
Properties
--------------@property (nonatomic, copy) NSArray *viewControllers;
Children view controllers of this container.[1]: http://twitter.com/merowing_