mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 13:16:58 +02:00
dummy implementation of the segmentedViewController :
> the tar items are displayed (even if they are currently hardcoded) > the tab items can selected (the selected marker view is displayed)
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
Copyright 2015 OpenMarket Ltd
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
#import <MatrixSDK/MatrixSDK.h>
|
||||
|
||||
#import "MXKViewController.h"
|
||||
|
||||
/**
|
||||
This view controller manages several uiviewcontrollers like UISegmentedControlled manages uiTableView
|
||||
except that the managed items are custom UIViewControllers.
|
||||
It uses a Vector design.
|
||||
*/
|
||||
@interface SegmentedViewController : MXKViewController
|
||||
|
||||
#pragma mark - Class methods
|
||||
@property (weak, nonatomic) IBOutlet UIView *selectionContainer;
|
||||
@property (weak, nonatomic) IBOutlet UIView *viewControllerContainer;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *selectionContainerTopConstraint;
|
||||
|
||||
/**
|
||||
Returns the `UINib` object initialized for a `SegmentedViewController`.
|
||||
|
||||
@return The initialized `UINib` object or `nil` if there were errors during initialization
|
||||
or the nib file could not be located.
|
||||
|
||||
@discussion You may override this method to provide a customized nib. If you do,
|
||||
you should also override `SegmentedViewController` to return your
|
||||
view controller loaded from your custom nib.
|
||||
*/
|
||||
+ (UINib *)nib;
|
||||
|
||||
/**
|
||||
Creates and returns a new `SegmentedViewController` object.
|
||||
|
||||
@discussion This is the designated initializer for programmatic instantiation.
|
||||
@return An initialized `SegmentedViewController` object if successful, `nil` otherwise.
|
||||
*/
|
||||
+ (instancetype)segmentedViewController;
|
||||
|
||||
/**
|
||||
init the segmentedViewController with a list of UIViewControllers.
|
||||
@param titles the section tiles
|
||||
@param viewControllers the list of viewControllers to display.
|
||||
@param defaultSelected index of the default selected UIViewController in the list.
|
||||
*/
|
||||
- (void)initWithTitles:(NSArray*)titles viewControllers:(NSArray*)viewControllers defaultSelected:(NSUInteger)index;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user